mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 17:45:32 +00:00
Fix for cleanup issue when exiting after a failed savegame load (Fixes #2580)
This commit is contained in:
parent
d1b6289cad
commit
2f97649540
1 changed files with 5 additions and 1 deletions
|
@ -196,7 +196,11 @@ const NpcAnimation::PartBoneMap NpcAnimation::sPartList = createPartListMap();
|
|||
|
||||
NpcAnimation::~NpcAnimation()
|
||||
{
|
||||
if (!mListenerDisabled)
|
||||
if (!mListenerDisabled
|
||||
// No need to getInventoryStore() to reset, if none exists
|
||||
// This is to avoid triggering the listener via ensureCustomData()->autoEquip()->fireEquipmentChanged()
|
||||
// all from within this destructor. ouch!
|
||||
&& mPtr.getRefData().getCustomData())
|
||||
mPtr.getClass().getInventoryStore(mPtr).setListener(NULL, mPtr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue