diff --git a/apps/openmw/mwmechanics/aicombat.cpp b/apps/openmw/mwmechanics/aicombat.cpp index 4053e640f..c01c4096b 100644 --- a/apps/openmw/mwmechanics/aicombat.cpp +++ b/apps/openmw/mwmechanics/aicombat.cpp @@ -52,7 +52,7 @@ namespace MWMechanics //General description if(!actor.getClass().getCreatureStats(actor).isHostile()) return true; - if(actor.getClass().getCreatureStats(actor).getHealth().getCurrent() <= 0) + if (mTarget.getClass().getCreatureStats(mTarget).isDead()) return true; //Update every frame