1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 15:15:33 +00:00

Fix deleted objects being accessible in the Cells cache

This commit is contained in:
scrawl 2015-12-17 20:17:53 +01:00
parent deb7f3caf6
commit e564c26314

View file

@ -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)