agitated_wilderness_creature is in unit->flags4

develop
Ryan Williams 2023-02-04 19:29:37 -08:00 committed by GitHub
parent c345acd417
commit 0f78509328
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -176,7 +176,7 @@ bool Units::isFortControlled(df::unit *unit)
unit->flags2.bits.visitor_uninvited ||
unit->flags2.bits.underworld ||
unit->flags2.bits.resident ||
unit->flags2.bits.agitated_wilderness_creature)
unit->flags4.bits.agitated_wilderness_creature)
return false;
return unit->civ_id != -1 && unit->civ_id == plotinfo->civ_id;