mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Fix deleted objects being accessible in the Cells cache
This commit is contained in:
parent
deb7f3caf6
commit
e564c26314
@ -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…
x
Reference in New Issue
Block a user