mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 19:06:40 +00:00
Fix uninitialized QuestStatus in DialInfo (Fixes #1694)
This commit is contained in:
parent
c6bf9dfbfb
commit
2e7b5fde7c
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,9 @@ namespace ESM
|
||||||
|
|
||||||
void DialInfo::load(ESMReader &esm)
|
void DialInfo::load(ESMReader &esm)
|
||||||
{
|
{
|
||||||
|
mQuestStatus = QS_None;
|
||||||
|
mFactionLess = false;
|
||||||
|
|
||||||
mPrev = esm.getHNString("PNAM");
|
mPrev = esm.getHNString("PNAM");
|
||||||
mNext = esm.getHNString("NNAM");
|
mNext = esm.getHNString("NNAM");
|
||||||
|
|
||||||
|
@ -49,7 +52,6 @@ void DialInfo::load(ESMReader &esm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mFactionLess = false;
|
|
||||||
if (subName.val == REC_FNAM)
|
if (subName.val == REC_FNAM)
|
||||||
{
|
{
|
||||||
mFaction = esm.getHString();
|
mFaction = esm.getHString();
|
||||||
|
@ -104,8 +106,6 @@ void DialInfo::load(ESMReader &esm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mQuestStatus = QS_None;
|
|
||||||
|
|
||||||
if (subName.val == REC_QSTN)
|
if (subName.val == REC_QSTN)
|
||||||
mQuestStatus = QS_Name;
|
mQuestStatus = QS_Name;
|
||||||
else if (subName.val == REC_QSTF)
|
else if (subName.val == REC_QSTF)
|
||||||
|
|
Loading…
Reference in a new issue