dead flag -> !isActive

develop
PatrikLundell 2018-06-14 12:30:41 +02:00
parent 6901c53bd5
commit aa361f3a0d
1 changed files with 1 additions and 1 deletions

@ -389,7 +389,7 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
//find all locals and invaders //find all locals and invaders
for ( size_t a = 0; a < world->units.all.size(); a++ ) { for ( size_t a = 0; a < world->units.all.size(); a++ ) {
df::unit* unit = world->units.all[a]; df::unit* unit = world->units.all[a];
if ( unit->flags1.bits.dead ) if ( !Units::isActive(unit) )
continue; continue;
if ( Units::isCitizen(unit) ) { if ( Units::isCitizen(unit) ) {
if ( localPts.find(unit->pos) != localPts.end() ) if ( localPts.find(unit->pos) != localPts.end() )