forked from teamnwah/openmw-tes3coop
Fix deleted objects being accessible in the Cells cache
This commit is contained in:
parent
deb7f3caf6
commit
e564c26314
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ MWWorld::Ptr MWWorld::Cells::getPtr (const std::string& name, CellStore& cell,
|
|||
|
||||
Ptr ptr = cell.search (name);
|
||||
|
||||
if (!ptr.isEmpty())
|
||||
if (!ptr.isEmpty() && ptr.getRefData().getCount())
|
||||
return ptr;
|
||||
|
||||
if (searchInContainers)
|
||||
|
|
Loading…
Reference in a new issue