Skip to content

Commit

Permalink
fix missing unit typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dhthwy committed Dec 7, 2024
1 parent 08ea4e9 commit 6418720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/modules/Units.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ bool Units::isDanger(df::unit *unit) {
|| isOpposedToLife(unit)
|| isAgitated(unit)
|| unit->flags2.bits.visitor_uninvited
|| ((isGreatDanger(unit) || isNightCreature()) && !unit->flags2.bits.visitor);
|| ((isGreatDanger(unit) || isNightCreature(unit)) && !unit->flags2.bits.visitor);
}

bool Units::isGreatDanger(df::unit *unit) {
Expand Down

0 comments on commit 6418720

Please sign in to comment.