1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Set health to 0 if it drops below 1 (Fixes #2163)

This commit is contained in:
MiroslavR 2014-11-27 20:44:41 +01:00
parent 3b347e666b
commit cb74c1c36e

View File

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