mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 18:39:40 +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)
|
for (CellRefList<ESM::Container>::List::iterator container = refList.begin(); container != refList.end(); ++container)
|
||||||
{
|
{
|
||||||
MWWorld::Ptr ptr (&*container, *cellIt);
|
MWWorld::Ptr ptr (&*container, *cellIt);
|
||||||
|
if (ptr.getRefData().isDeleted())
|
||||||
|
continue;
|
||||||
if (Misc::StringUtils::ciEqual(ptr.getCellRef().getOwner(), npc.getCellRef().getRefId()))
|
if (Misc::StringUtils::ciEqual(ptr.getCellRef().getOwner(), npc.getCellRef().getRefId()))
|
||||||
out.push_back(ptr);
|
out.push_back(ptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue