forked from teamnwah/openmw-tes3coop
[Client] Set actors as the owners of their items when editing containers
This commit is contained in:
parent
bacecc93e3
commit
83014d6381
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ void ObjectList::editContainers(MWWorld::CellStore* cellStore)
|
|||
bool isLocalTakeAll = isLocalEvent && containerSubAction == BaseObjectList::TAKE_ALL;
|
||||
std::string takeAllSound = "";
|
||||
|
||||
MWWorld::Ptr ownerPtr = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
MWWorld::Ptr ownerPtr = ptrFound.getClass().isActor() ? ptrFound : MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
|
||||
for (const auto &containerItem : baseObject.containerItems)
|
||||
{
|
||||
//LOG_APPEND(Log::LOG_VERBOSE, "-- containerItem cellRef: %s, count: %i, actionCount: %i",
|
||||
|
|
Loading…
Reference in a new issue