mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 06:53:52 +00:00
Reset ownership of items dropped via 'drop' instruction (Fixes #2053)
This commit is contained in:
parent
19b380d0b4
commit
925fa8d193
1 changed files with 2 additions and 1 deletions
|
@ -454,7 +454,8 @@ namespace MWScript
|
|||
if (::Misc::StringUtils::ciEqual(iter->getCellRef().getRefId(), item))
|
||||
{
|
||||
int removed = store.remove(*iter, toRemove, ptr);
|
||||
MWBase::Environment::get().getWorld()->dropObjectOnGround(ptr, *iter, removed);
|
||||
MWWorld::Ptr dropped = MWBase::Environment::get().getWorld()->dropObjectOnGround(ptr, *iter, removed);
|
||||
dropped.getCellRef().setOwner("");
|
||||
|
||||
toRemove -= removed;
|
||||
|
||||
|
|
Loading…
Reference in a new issue