From 11fe530e18248b14c40edb6b56e9e3f47af3461c Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 10 Oct 2018 23:31:12 +0200 Subject: Properly handle speed restrictions --- advtrains/trainlogic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains/trainlogic.lua') diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index f94bda0..4ca212f 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -1029,7 +1029,7 @@ function advtrains.invert_train(train_id) advtrains.update_trainpart_properties(train_id, true) -- TODO: this should actually be SHUNT_MAX_SPEED, but signals and lzb is not present everywhere - advtrains.speed_restriction = nil + train.speed_restriction = nil end -- returns: train id, index of one of the trains that stand at this position. -- cgit v1.2.3