diff options
author | ywang <yw05@forksworld.de> | 2021-11-19 21:41:15 +0100 |
---|---|---|
committer | Gabriel PĂ©rez-Cerezo <gabriel@gpcf.eu> | 2021-11-20 01:59:26 +0100 |
commit | f27640ee272432e181b003b22ba1a3d5bc18817d (patch) | |
tree | 53a2ff18f09003486e969befe6cb2aa8c5c9ae6c /advtrains/trainlogic.lua | |
parent | 358bff47b2325a76808f80bfd8c06b684a6efbb8 (diff) | |
download | advtrains-f27640ee272432e181b003b22ba1a3d5bc18817d.tar.gz advtrains-f27640ee272432e181b003b22ba1a3d5bc18817d.tar.bz2 advtrains-f27640ee272432e181b003b22ba1a3d5bc18817d.zip |
Trivial fixup for train decoupling regressionrelease-2.4.1
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 10af567..53732a2 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -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 |