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

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

This commit is contained in:
David Cernat 2022-02-10 23:10:11 +02:00
parent 15fdac3f6c
commit 4aa947ff4b

View file

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