1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

Give 100% of health back when Resurrecting an actor (Fixes #1877)

This commit is contained in:
scrawl 2014-09-13 20:50:49 +02:00
parent 319f4e0547
commit 8625764143

View File

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