[.15.10] Out of bounds train schedule crash
Posted: Tue May 16, 2017 4:14 am
Code: Select all
local records = {}
for _, name in pairs ({"#SOUTH", "#EAST", "#NORTH", "#WEST"}) do
records[#records + 1] = {station = name, wait_conditions = {{type = "time", ticks = 0, compare_type = "and"}}}
end
records[1].wait_conditions = {{type = "full", compare_type = "and"}}
train.schedule = {current = 0, records = records} --<<<<< Don't set it to 0