From 86280df55a053384f4316c24f85ff70c6eebbc74 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 16 Oct 2014 19:35:20 +0200 Subject: [PATCH] DialInfo: Clear SelectStructs from previous loadings when a record is overwritten (Fixes #2017) --- components/esm/loadinfo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esm/loadinfo.cpp b/components/esm/loadinfo.cpp index 7c98cc35b..a2bade1c5 100644 --- a/components/esm/loadinfo.cpp +++ b/components/esm/loadinfo.cpp @@ -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);