From 801c0eb57c4300ffb35556711a84411a1b62b28a Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 6 Feb 2015 17:34:08 +0100 Subject: [PATCH] Detect Creature should detect alive creatures only (Fixes #2353) --- apps/openmw/mwworld/worldimp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index a60eae48a..0694a3da6 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -2886,6 +2886,9 @@ namespace MWWorld } else if (ptr.getClass().getTypeName() != typeid(ESM::Creature).name()) return false; + + if (ptr.getClass().getCreatureStats(ptr).isDead()) + return false; } if (mType == World::Detect_Key && !ptr.getClass().isKey(ptr)) return false;