aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/trainlogic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index 46b6b1d..91a67d5 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -930,7 +930,7 @@ function advtrains.split_train_at_wagon(wagon_id)
local newtrain=advtrains.trains[newtrain_id]
newtrain.velocity=train.velocity
-
+ return newtrain_id -- return new train ID, so new train can be manipulated
end
-- coupling