Fix owner not getting set on restocked items

moveref
scrawl 10 years ago
parent 9ed71765a9
commit 1bcc4430e0

@ -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…
Cancel
Save