forked from teamnwah/openmw-tes3coop
DialInfo: Clear SelectStructs from previous loadings when a record is overwritten (Fixes #2017)
This commit is contained in:
parent
c4e81adb83
commit
86280df55a
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ void DialInfo::load(ESMReader &esm)
|
||||||
mPrev = esm.getHNString("PNAM");
|
mPrev = esm.getHNString("PNAM");
|
||||||
mNext = esm.getHNString("NNAM");
|
mNext = esm.getHNString("NNAM");
|
||||||
|
|
||||||
|
// Since there's no way to mark selects as "deleted", we have to clear the SelectStructs from all previous loadings
|
||||||
|
mSelects.clear();
|
||||||
|
|
||||||
// Not present if deleted
|
// Not present if deleted
|
||||||
if (esm.isNextSub("DATA")) {
|
if (esm.isNextSub("DATA")) {
|
||||||
esm.getHT(mData, 12);
|
esm.getHT(mData, 12);
|
||||||
|
|
Loading…
Reference in a new issue