forked from mirror/openmw-tes3mp
Prevent items in a container owned by a dead actor from being counted as stolen (Bug #4328)
This commit is contained in:
parent
cc0c6ddaa6
commit
d371bebb33
1 changed files with 1 additions and 1 deletions
|
@ -1119,7 +1119,7 @@ namespace MWMechanics
|
|||
|
||||
if (!Misc::StringUtils::ciEqual(item.getCellRef().getRefId(), MWWorld::ContainerStore::sGoldId))
|
||||
{
|
||||
const MWWorld::Ptr victimRef = MWBase::Environment::get().getWorld()->searchPtr(item.getCellRef().getOwner(), true);
|
||||
const MWWorld::Ptr victimRef = MWBase::Environment::get().getWorld()->searchPtr(ownerCellRef->getOwner(), true);
|
||||
if (victimRef.isEmpty() || !victimRef.getClass().getCreatureStats(victimRef).isDead())
|
||||
mStolenItems[Misc::StringUtils::lowerCase(item.getCellRef().getRefId())][owner] += count;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue