mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
DialInfo: Clear SelectStructs from previous loadings when a record is overwritten (Fixes #2017)
This commit is contained in:
parent
c4e81adb83
commit
86280df55a
@ -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…
x
Reference in New Issue
Block a user