Add removing of deleted Infos to Dialogue::clearDeletedInfos()

openmw-38
Stanislav Bas 10 years ago
parent e0983c815c
commit adec0cb61d

@ -133,7 +133,7 @@ namespace ESM
{
for (InfoContainer::iterator it = mInfo.begin(); it != mInfo.end(); )
{
if (it->mQuestStatus == DialInfo::QS_Deleted)
if (it->mIsDeleted || it->mQuestStatus == DialInfo::QS_Deleted)
it = mInfo.erase(it);
else
++it;

@ -53,7 +53,7 @@ struct Dialogue
void load(ESMReader &esm);
void save(ESMWriter &esm) const;
/// Remove all INFOs marked as QS_Deleted from mInfos.
/// Remove all INFOs that are deleted or marked as QS_Deleted from mInfos.
void clearDeletedInfos();
/// Read the next info record

Loading…
Cancel
Save