mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 18:39:59 +00:00
Fix regression with detect spells detecting deleted objects (Fixes #2518)
This commit is contained in:
parent
033719ccd7
commit
b312f50b1f
@ -2956,7 +2956,7 @@ namespace MWWorld
|
|||||||
Ogre::Vector3(mDetector.getRefData().getPosition().pos)) >= mSquaredDist)
|
Ogre::Vector3(mDetector.getRefData().getPosition().pos)) >= mSquaredDist)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (!ptr.getRefData().isEnabled())
|
if (!ptr.getRefData().isEnabled() || ptr.getRefData().isDeleted())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Consider references inside containers as well (except if we are looking for a Creature, they cannot be in containers)
|
// Consider references inside containers as well (except if we are looking for a Creature, they cannot be in containers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user