From afe8c97cb94343fbf74fe404426d5fe455017cc9 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sun, 1 Apr 2018 08:41:57 +0300 Subject: [PATCH] [Client] Require InventoryStore for unequipping actors in editContainers --- apps/openmw/mwmp/WorldEvent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/WorldEvent.cpp b/apps/openmw/mwmp/WorldEvent.cpp index 5a5352805..07bdcc577 100644 --- a/apps/openmw/mwmp/WorldEvent.cpp +++ b/apps/openmw/mwmp/WorldEvent.cpp @@ -151,7 +151,7 @@ void WorldEvent::editContainers(MWWorld::CellStore* cellStore) takeAllSound = itemPtr.getClass().getUpSoundId(itemPtr); // Is this an actor's container? If so, unequip this item if it was equipped - if (ptrFound.getClass().isActor()) + if (ptrFound.getClass().isActor() && ptrFound.getClass().hasInventoryStore(ptrFound)) { MWWorld::InventoryStore& invStore = ptrFound.getClass().getInventoryStore(ptrFound);