1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-20 19:39:41 +00:00

Fix deleted containers showing in merchant inventories

This commit is contained in:
scrawl 2014-12-20 19:53:38 +01:00
parent f3738e9a98
commit 9ed71765a9

View file

@ -2259,6 +2259,8 @@ namespace MWWorld
for (CellRefList<ESM::Container>::List::iterator container = refList.begin(); container != refList.end(); ++container)
{
MWWorld::Ptr ptr (&*container, *cellIt);
if (ptr.getRefData().isDeleted())
continue;
if (Misc::StringUtils::ciEqual(ptr.getCellRef().getOwner(), npc.getCellRef().getRefId()))
out.push_back(ptr);
}