mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 13:43:43 +00:00
Make sure that health is >= 1 when resurrecting the player (Fixes #2972)
This commit is contained in:
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…
x
Reference in New Issue
Block a user