Switch to Units functions

develop
PatrikLundell 2018-06-14 09:42:45 +02:00
parent 0ec3df6022
commit 897a818f4c
1 changed files with 1 additions and 1 deletions

@ -162,7 +162,7 @@ command_result cursecheck (color_ostream &out, vector <string> & parameters)
// filter out all "living" units that are currently removed from play // filter out all "living" units that are currently removed from play
// don't spam all completely dead creatures if not explicitly wanted // 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; continue;
} }