DialInfo: Clear SelectStructs from previous loadings when a record is overwritten (Fixes #2017)

openmw-33
scrawl 10 years ago
parent c4e81adb83
commit 86280df55a

@ -16,6 +16,9 @@ void DialInfo::load(ESMReader &esm)
mPrev = esm.getHNString("PNAM");
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
if (esm.isNextSub("DATA")) {
esm.getHT(mData, 12);

Loading…
Cancel
Save