mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 22:15:32 +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(); )
|
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);
|
it = mInfo.erase(it);
|
||||||
else
|
else
|
||||||
++it;
|
++it;
|
||||||
|
|
|
@ -53,7 +53,7 @@ struct Dialogue
|
||||||
void load(ESMReader &esm);
|
void load(ESMReader &esm);
|
||||||
void save(ESMWriter &esm) const;
|
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();
|
void clearDeletedInfos();
|
||||||
|
|
||||||
/// Read the next info record
|
/// Read the next info record
|
||||||
|
|
Loading…
Reference in a new issue