From 897a818f4c3dd7ea9914ad9f78591ac112a8fab8 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Thu, 14 Jun 2018 09:42:45 +0200 Subject: [PATCH] Switch to Units functions --- plugins/cursecheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cursecheck.cpp b/plugins/cursecheck.cpp index 4a36f4841..dd820cd35 100644 --- a/plugins/cursecheck.cpp +++ b/plugins/cursecheck.cpp @@ -162,7 +162,7 @@ command_result cursecheck (color_ostream &out, vector & parameters) // filter out all "living" units that are currently removed from play // don't spam all completely dead creatures if not explicitly wanted - if((unit->flags1.bits.dead && !unit->flags2.bits.killed) || (unit->flags2.bits.killed && ignoreDead)) + if((!Units::isActive(unit) && !Units::isKilled(unit)) || (Units::isKilled(unit) && ignoreDead)) { continue; }