forked from teamnwah/openmw-tes3coop
Set health to 0 if it drops below 1 (Fixes #2163)
This commit is contained in:
parent
3b347e666b
commit
cb74c1c36e
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ namespace MWMechanics
|
||||||
if (index==0 && mDynamic[index].getCurrent()<1)
|
if (index==0 && mDynamic[index].getCurrent()<1)
|
||||||
{
|
{
|
||||||
mDead = true;
|
mDead = true;
|
||||||
|
mDynamic[index].setCurrent(0);
|
||||||
|
|
||||||
if (MWBase::Environment::get().getWorld()->getGodModeState())
|
if (MWBase::Environment::get().getWorld()->getGodModeState())
|
||||||
MWBase::Environment::get().getMechanicsManager()->keepPlayerAlive();
|
MWBase::Environment::get().getMechanicsManager()->keepPlayerAlive();
|
||||||
|
|
Loading…
Reference in a new issue