forked from mirror/openmw-tes3mp
Make sure that health is >= 1 when resurrecting the player (Fixes #2972)
This commit is contained in:
parent
05f1fbf593
commit
6f98982bc2
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue