From cb74c1c36e24debbd697f16fd7fd3d2d619bbdbf Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Thu, 27 Nov 2014 20:44:41 +0100 Subject: [PATCH] Set health to 0 if it drops below 1 (Fixes #2163) --- apps/openmw/mwmechanics/creaturestats.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/openmw/mwmechanics/creaturestats.cpp b/apps/openmw/mwmechanics/creaturestats.cpp index c4d316ad6..a287a7e11 100644 --- a/apps/openmw/mwmechanics/creaturestats.cpp +++ b/apps/openmw/mwmechanics/creaturestats.cpp @@ -184,6 +184,7 @@ namespace MWMechanics if (index==0 && mDynamic[index].getCurrent()<1) { mDead = true; + mDynamic[index].setCurrent(0); if (MWBase::Environment::get().getWorld()->getGodModeState()) MWBase::Environment::get().getMechanicsManager()->keepPlayerAlive();