1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Reset health modifier when actor dies (Fixes #2330)

This commit is contained in:
MiroslavR 2015-02-01 22:04:49 +01:00
parent 82ff737c31
commit ee8f88fc42

View file

@ -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())