forked from teamnwah/openmw-tes3coop
[Client] Require InventoryStore for unequipping actors in editContainers
This commit is contained in:
parent
d8b48f6cf4
commit
afe8c97cb9
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ void WorldEvent::editContainers(MWWorld::CellStore* cellStore)
|
||||||
takeAllSound = itemPtr.getClass().getUpSoundId(itemPtr);
|
takeAllSound = itemPtr.getClass().getUpSoundId(itemPtr);
|
||||||
|
|
||||||
// Is this an actor's container? If so, unequip this item if it was equipped
|
// 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);
|
MWWorld::InventoryStore& invStore = ptrFound.getClass().getInventoryStore(ptrFound);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue