ensure restored orders start at index 0

so the manager_order_next_id state can be set to #orders
develop
myk002 2021-07-19 13:54:22 -07:00
parent 9ec1488f1b
commit 9a7a692ea8
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 0 deletions

@ -17,6 +17,7 @@ local function test_wrapper(test_fn)
function()
-- clear test orders, restore original orders, remove temp files
dfhack.run_command_silent{'orders', 'clear'}
df.global.world.manager_order_next_id = 0
dfhack.run_command_silent{'orders', 'import', BACKUP_FILE_NAME}
df.global.world.manager_order_next_id =
#df.global.world.manager_orders