From 0ab432b074243f157520a80fd79e7df5ede9acde Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Thu, 25 Oct 2012 12:22:48 +0200 Subject: [PATCH] Issue #68: fixed death detection --- apps/openmw/mwmechanics/creaturestats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/creaturestats.cpp b/apps/openmw/mwmechanics/creaturestats.cpp index 8be4b9369..1e57ba313 100644 --- a/apps/openmw/mwmechanics/creaturestats.cpp +++ b/apps/openmw/mwmechanics/creaturestats.cpp @@ -176,7 +176,7 @@ namespace MWMechanics mDynamic[index] = value; - if (index==2 && mDynamic[index].getCurrent()<1) + if (index==0 && mDynamic[index].getCurrent()<1) mDead = true; }