mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-10 15:45:37 +00:00
Add removing of deleted Infos to Dialogue::clearDeletedInfos()
This commit is contained in:
parent
e0983c815c
commit
adec0cb61d
@ -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…
x
Reference in New Issue
Block a user