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:
parent
e0983c815c
commit
adec0cb61d
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue