From 1602eb3de8904d95aa59bc05d5f44cbab3dc3375 Mon Sep 17 00:00:00 2001 From: Allofich Date: Mon, 27 Jun 2016 21:24:45 +0900 Subject: [PATCH] Fix so that keepPlayerAlive() will not run twice --- apps/openmw/mwmechanics/mechanicsmanagerimp.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp index 95c2ce9cb..8f920dd25 100644 --- a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp @@ -1574,15 +1574,7 @@ namespace MWMechanics MWWorld::Ptr player = getPlayer(); CreatureStats& stats = player.getClass().getCreatureStats(player); if (stats.isDead()) - { - MWMechanics::DynamicStat stat (stats.getHealth()); - if (stat.getModified()<1) - { - stat.setModified(1, 0); - stats.setHealth(stat); - } stats.resurrect(); - } } bool MechanicsManager::isReadyToBlock(const MWWorld::Ptr &ptr) const