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:
parent
f3738e9a98
commit
9ed71765a9
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue