From a33ac3b402fa11e4d877134422cd12386d943418 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 27 Jul 2019 09:28:50 +0200 Subject: [PATCH] Increase MAX_WORKERS for Blumenkinder. --- src/economy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/economy.c b/src/economy.c index b7ece1d45..72e623542 100644 --- a/src/economy.c +++ b/src/economy.c @@ -2709,10 +2709,11 @@ void loot_cmd(unit * u, struct order *ord, econ_request ** lootorders) return; } -#define MAX_WORKERS 512 +#define MAX_WORKERS 1024 +static struct econ_request workers[MAX_WORKERS]; + void auto_work(region * r) { - econ_request workers[MAX_WORKERS]; econ_request *nextworker = workers; unit *u; @@ -2781,7 +2782,6 @@ static bool rule_autowork(void) { void produce(struct region *r) { - econ_request workers[MAX_WORKERS]; econ_request *taxorders, *lootorders, *sellorders, *stealorders, *buyorders; unit *u; bool limited = true;