1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 09:39:56 +00:00

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

This commit is contained in:
scrawl 2014-10-16 19:35:20 +02:00
parent c4e81adb83
commit 86280df55a

View File

@ -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);