aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-10-10 23:17:31 +0200
committerorwell96 <orwell@bleipb.de>2018-10-10 23:17:31 +0200
commit9db52bcd32b49d6b98644dcb7edcf14987850fa5 (patch)
tree6ed4e2859c433cdd4e42b6f4163294b4b3bd2fdc /advtrains_interlocking
parent842a85606e4495dd631c2916d09a760d74a0ce13 (diff)
downloadadvtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.tar.gz
advtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.tar.bz2
advtrains-9db52bcd32b49d6b98644dcb7edcf14987850fa5.zip
Remote Routesetting from Onboard Computer
+ Fix lzb oncoming item deletion/speed restriction
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/lzb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/lzb.lua b/advtrains_interlocking/lzb.lua
index 8781d40..db745ef 100644
--- a/advtrains_interlocking/lzb.lua
+++ b/advtrains_interlocking/lzb.lua
@@ -138,7 +138,7 @@ local function apply_control(id, train)
local lzb = train.lzb
local i = 1
- while i<#lzb.oncoming do
+ while i<=#lzb.oncoming do
if lzb.oncoming[i].idx < train.index then
train.speed_restriction = lzb.oncoming[i].spd
table.remove(lzb.oncoming, i)