mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:53:51 +00:00
Fix owner not getting set on restocked items
This commit is contained in:
parent
9ed71765a9
commit
1bcc4430e0
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ void MWWorld::ContainerStore::restock (const ESM::InventoryList& items, const MW
|
|||
{
|
||||
int currentCount = count(item);
|
||||
if (currentCount < std::abs(it->mCount))
|
||||
add (item, std::abs(it->mCount) - currentCount, ptr);
|
||||
addInitialItem(item, owner, faction, std::abs(it->mCount) - currentCount, true);
|
||||
}
|
||||
}
|
||||
flagAsModified();
|
||||
|
|
Loading…
Reference in a new issue