mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-14 12:12:42 -06:00
fixed a crash relating to space elevators
This commit is contained in:
@@ -998,6 +998,14 @@ local function main()
|
||||
local train = map_data.trains[old_id]
|
||||
if not train then return end
|
||||
|
||||
if train.is_available then
|
||||
local network = map_data.available_trains[train.network_name--[[@as string]]]
|
||||
if network then
|
||||
network[new_id] = true
|
||||
network[old_id] = nil
|
||||
end
|
||||
end
|
||||
|
||||
map_data.trains[new_id] = train
|
||||
map_data.trains[old_id] = nil
|
||||
train.entity = train_entity
|
||||
|
||||
Reference in New Issue
Block a user