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

[Client] Keep extra item data when adding items to player via Take All

This commit is contained in:
David Cernat 2020-04-17 20:01:28 +03:00
parent 509f03ca52
commit 001d63b59b

View file

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