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.
This commit is contained in:
Tim Edwards 2018-12-14 16:33:34 -05:00
parent 53fd26d1bc
commit 34ae6ea9cc
1 changed files with 4 additions and 0 deletions

View File

@ -2051,6 +2051,10 @@ PlowAfterTech()
TileTypeBitMask mask; TileTypeBitMask mask;
TileType i, j; TileType i, j;
/* Reset rules tables */
plowSearchRulesPtr = plowSearchRulesTbl;
plowCellRulesPtr = plowCellRulesTbl;
/* Set the masks we will use for all the rules below */ /* Set the masks we will use for all the rules below */
allButSpace = DBAllButSpaceAndDRCBits; allButSpace = DBAllButSpaceAndDRCBits;
allBits = DBAllTypeBits; allBits = DBAllTypeBits;