Trivial fixup for train decoupling regression

master
ywang 2021-11-19 21:41:15 +01:00 committed by Gabriel Pérez-Cerezo
parent 358bff47b2
commit f27640ee27
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ function advtrains.split_train_at_index(train, index)
newtrain.line = train.line
newtrain.routingcode = train.routingcode
newtrain.speed_restriction = train.speed_restriction
newtrain.speed_restrictions_t = table.copy(train.speed_restrictions_t)
newtrain.speed_restrictions_t = table.copy(train.speed_restrictions_t or {main=train.speed_restriction})
newtrain.is_shunt = train.is_shunt
newtrain.points_split = advtrains.merge_tables(train.points_split)
newtrain.autocouple = train.autocouple