From 34ae6ea9cc87d5a513b7641f80b5dc50536e159e Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 14 Dec 2018 16:33:34 -0500 Subject: [PATCH] Corrected error in technology file reloading that causes the plow module to fill up its rules table and start printing errors about the table overflow. Tables are now properly reset on tech reload. --- plow/PlowMain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plow/PlowMain.c b/plow/PlowMain.c index eed98001..ac2b333c 100644 --- a/plow/PlowMain.c +++ b/plow/PlowMain.c @@ -2051,6 +2051,10 @@ PlowAfterTech() TileTypeBitMask mask; TileType i, j; + /* Reset rules tables */ + plowSearchRulesPtr = plowSearchRulesTbl; + plowCellRulesPtr = plowCellRulesTbl; + /* Set the masks we will use for all the rules below */ allButSpace = DBAllButSpaceAndDRCBits; allBits = DBAllTypeBits;