dead flag -> !isInactive

develop
PatrikLundell 2018-06-14 12:33:18 +02:00
parent f076d00ede
commit 3be27a49b5
1 changed files with 1 additions and 1 deletions

@ -64,7 +64,7 @@ void impregnateMany() {
auto units = world->units.all; auto units = world->units.all;
for ( size_t a = 0; a < units.size(); a++ ) { for ( size_t a = 0; a < units.size(); a++ ) {
df::unit* unit = units[a]; df::unit* unit = units[a];
if ( unit->flags1.bits.dead || unit->flags1.bits.active_invader || unit->flags2.bits.underworld || unit->flags2.bits.visitor_uninvited || unit->flags2.bits.visitor ) if ( !Units::isActive(unit) || unit->flags1.bits.active_invader || unit->flags2.bits.underworld || unit->flags2.bits.visitor_uninvited || unit->flags2.bits.visitor )
continue; continue;
popcount[unit->race]++; popcount[unit->race]++;
if ( unit->pregnancy_genes ) { if ( unit->pregnancy_genes ) {