Skip to content

Commit

Permalink
Fixed computers sometimes not assigning creatures to rooms (#3371)
Browse files Browse the repository at this point in the history
Fixes #3369

Bug was introduced in f5facf2
  • Loading branch information
Loobinex authored Jul 27, 2024
1 parent 264b8d0 commit 78685e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player_compchecks.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int calculate_number_of_creatures_to_move(struct Dungeon *dungeon, int percent_t
if (!creature_is_being_unconscious(thing) && !thing_is_picked_up(thing) && !creature_is_kept_in_custody_by_enemy(thing))
{
struct CreatureStats* crstat = creature_stats_get_from_thing(thing);
if ((cctrl->job_assigned == crstat->job_primary) || (cctrl->job_assigned == crstat->job_secondary))
if ((cctrl->job_assigned == crstat->job_primary) || (cctrl->job_assigned == crstat->job_secondary) || (cctrl->job_assigned == 0))
{
creatures_doing_primary_or_secondary_job += 1;
} else {
Expand Down

0 comments on commit 78685e0

Please sign in to comment.