fixed a crash

This commit is contained in:
Monica Moniot
2022-12-08 21:39:30 -05:00
parent 8782466120
commit e8954a0298
4 changed files with 16 additions and 1 deletions

View File

@@ -142,6 +142,8 @@ function init_global()
global.layouts = {}
global.layout_train_count = {}
global.layout_top_id = 1
global.refuelers = {}
global.to_refuelers = {}
IS_SE_PRESENT = remote.interfaces["space-exploration"] ~= nil
if IS_SE_PRESENT then

View File

@@ -95,6 +95,14 @@ local migrations_table = {
end
end
end,
["1.1.2"] = function()
---@type MapData
local map_data = global
map_data.tick_state = STATE_INIT
map_data.tick_data = {}
map_data.refuelers = map_data.refuelers or {}
map_data.to_refuelers = map_data.to_refuelers or {}
end,
}
--STATUS_R_TO_D = 5