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

This commit is contained in:
scrawl 2015-12-09 01:52:20 +01:00
parent 05f1fbf593
commit 6f98982bc2

View file

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