From 2e7b5fde7c2f01f178a2c44a0e14e452fdaca06b Mon Sep 17 00:00:00 2001 From: scrawl Date: Mon, 4 Aug 2014 16:42:09 +0200 Subject: [PATCH] Fix uninitialized QuestStatus in DialInfo (Fixes #1694) --- components/esm/loadinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esm/loadinfo.cpp b/components/esm/loadinfo.cpp index c9860dcef..7c98cc35b 100644 --- a/components/esm/loadinfo.cpp +++ b/components/esm/loadinfo.cpp @@ -10,6 +10,9 @@ namespace ESM void DialInfo::load(ESMReader &esm) { + mQuestStatus = QS_None; + mFactionLess = false; + mPrev = esm.getHNString("PNAM"); mNext = esm.getHNString("NNAM"); @@ -49,7 +52,6 @@ void DialInfo::load(ESMReader &esm) return; } - mFactionLess = false; if (subName.val == REC_FNAM) { mFaction = esm.getHString(); @@ -104,8 +106,6 @@ void DialInfo::load(ESMReader &esm) return; } - mQuestStatus = QS_None; - if (subName.val == REC_QSTN) mQuestStatus = QS_Name; else if (subName.val == REC_QSTF)