Skip to content

Commit

Permalink
Fix disabling industry for new resources
Browse files Browse the repository at this point in the history
New buildings were still counted as needing workers even if the industry
was turned off via the trade advisor
  • Loading branch information
Keriew committed Nov 6, 2023
1 parent 1701e84 commit 00a21fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/city/labor.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ void city_labor_calculate_workers(int num_plebs, int num_patricians)

static int is_industry_disabled(building *b)
{
if ((b->type < BUILDING_WHEAT_FARM || b->type > BUILDING_POTTERY_WORKSHOP) &&
b->type != BUILDING_WHARF) {
if (!b->output_resource_id) {
return 0;
}
int resource = b->output_resource_id;
Expand Down

0 comments on commit 00a21fe

Please sign in to comment.