From 00a21fead4bcf4880b2bbae7c6ea07070271d043 Mon Sep 17 00:00:00 2001 From: Keriew Date: Mon, 6 Nov 2023 14:38:38 +0100 Subject: [PATCH] Fix disabling industry for new resources New buildings were still counted as needing workers even if the industry was turned off via the trade advisor --- src/city/labor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/city/labor.c b/src/city/labor.c index 43b786bcc2..ffee1ac0dd 100644 --- a/src/city/labor.c +++ b/src/city/labor.c @@ -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;