forked from teamnwah/openmw-tes3coop
Do not set owner when adding items to a container, as opposed to NPC/creatures
This commit is contained in:
parent
fe66012bcd
commit
2836c7c927
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& itemPtr
|
|||
item.getCellRef().mPos.pos[1] = 0;
|
||||
item.getCellRef().mPos.pos[2] = 0;
|
||||
|
||||
if (setOwner)
|
||||
if (setOwner && actorPtr.getClass().isActor())
|
||||
item.getCellRef().mOwner = actorPtr.getCellRef().mRefID;
|
||||
|
||||
std::string script = MWWorld::Class::get(item).getScript(item);
|
||||
|
|
Loading…
Reference in a new issue