1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-19 20:23:54 +00:00

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

This commit is contained in:
Stanislav Bas 2015-07-12 00:19:04 +03:00
parent e0983c815c
commit adec0cb61d
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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