[Client] Prevent player from auto-equipping items taken from containers

pull/600/head
David Cernat 3 years ago
parent 15fdac3f6c
commit 4aa947ff4b

@ -274,7 +274,7 @@ void ObjectList::editContainers(MWWorld::CellStore* cellStore)
{
MWWorld::Ptr ptrPlayer = MWBase::Environment::get().getWorld()->getPlayerPtr();
MWWorld::ContainerStore &playerStore = ptrPlayer.getClass().getContainerStore(ptrPlayer);
*playerStore.add(itemPtr, containerItem.actionCount, ownerPtr);
*playerStore.add(itemPtr, containerItem.actionCount, ownerPtr, false);
}
}
}

Loading…
Cancel
Save