1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 12:39:55 +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();