1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-31 02:36:46 +00:00

[Client] Fix additional resurrection problems caused by 6450d84473

This commit is contained in:
David Cernat 2019-12-03 11:42:56 +02:00
parent eeb3e4f938
commit 5ca2c83b02
2 changed files with 2 additions and 2 deletions

View file

@ -152,7 +152,7 @@ void DedicatedActor::setStatsDynamic()
// Resurrect this Actor if it's not supposed to be dead according to its authority
if (creatureStats.mDynamic[0].mCurrent > 0)
ptrCreatureStats->resurrect();
MWBase::Environment::get().getMechanicsManager()->resurrect(ptr);
for (int i = 0; i < 3; ++i)
{

View file

@ -98,7 +98,7 @@ void DedicatedPlayer::update(float dt)
}
if (ptrCreatureStats->isDead())
ptrCreatureStats->resurrect();
MWBase::Environment::get().getMechanicsManager()->resurrect(ptr);
ptrCreatureStats->setAttacked(false);