1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-13 07:14:31 +00:00

Detect Creature should detect alive creatures only (Fixes #2353)

This commit is contained in:
scrawl 2015-02-06 17:34:08 +01:00
parent c27c20a859
commit 801c0eb57c

View File

@ -2886,6 +2886,9 @@ namespace MWWorld
} }
else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name()) else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name())
return false; return false;
if (ptr.getClass().getCreatureStats(ptr).isDead())
return false;
} }
if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr)) if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr))
return false; return false;