Make sure that health is >= 1 when resurrecting the player (Fixes #2972)

openmw-38
scrawl 9 years ago
parent 05f1fbf593
commit 6f98982bc2

@ -267,9 +267,11 @@ namespace MWMechanics
{
if (mDead)
{
if (mDynamic[0].getModified() < 1)
mDynamic[0].setModified(1, 0);
mDynamic[0].setCurrent(mDynamic[0].getModified());
if (mDynamic[0].getCurrent()>=1)
mDead = false;
mDead = false;
}
}

Loading…
Cancel
Save