From ee8f88fc42e8774ca3aed06292b623f8120b7434 Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Sun, 1 Feb 2015 22:04:49 +0100 Subject: [PATCH] Reset health modifier when actor dies (Fixes #2330) --- apps/openmw/mwmechanics/creaturestats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwmechanics/creaturestats.cpp b/apps/openmw/mwmechanics/creaturestats.cpp index ac35fc2ea..05ea9fb5e 100644 --- a/apps/openmw/mwmechanics/creaturestats.cpp +++ b/apps/openmw/mwmechanics/creaturestats.cpp @@ -196,6 +196,8 @@ namespace MWMechanics if (index==0 && mDynamic[index].getCurrent()<1) { mDead = true; + + mDynamic[index].setModifier(0); mDynamic[index].setCurrent(0); if (MWBase::Environment::get().getWorld()->getGodModeState())