1
0
Fork 1
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:
scrawl 2014-12-20 20:13:27 +01:00
parent 9ed71765a9
commit 1bcc4430e0

View file

@ -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();