1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-01 01:39:39 +00:00

[Client] Require InventoryStore for unequipping actors in editContainers

This commit is contained in:
David Cernat 2018-04-01 08:41:57 +03:00
parent d8b48f6cf4
commit afe8c97cb9

View file

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