From 789ce440023c66f8ae1df81016efe465ec43cdd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Cadete?= Date: Fri, 7 Jul 2023 18:22:18 +0100 Subject: [PATCH] Fix neptune bonus making fountains not work when the c3_model is changed to require only one worker --- src/building/building.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/building/building.c b/src/building/building.c index 56492695f3..515728b79c 100644 --- a/src/building/building.c +++ b/src/building/building.c @@ -577,6 +577,9 @@ int building_get_laborers(building_type type) // Neptune GT bonus if (type == BUILDING_FOUNTAIN && building_monument_working(BUILDING_GRAND_TEMPLE_NEPTUNE)) { workers /= 2; + if (workers == 0) { + workers = 1; + } } return workers; }