mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
Fix owner not getting set on restocked items
This commit is contained in:
parent
9ed71765a9
commit
1bcc4430e0
@ -474,7 +474,7 @@ void MWWorld::ContainerStore::restock (const ESM::InventoryList& items, const MW
|
|||||||
{
|
{
|
||||||
int currentCount = count(item);
|
int currentCount = count(item);
|
||||||
if (currentCount < std::abs(it->mCount))
|
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();
|
flagAsModified();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user