Remove superfluous train_id check from reverse_lookup
Reported by Sebastien F4GRX, thank you!
This commit is contained in:
parent
216f28e51a
commit
4cfd07e992
|
@ -159,10 +159,8 @@ function o.reverse_lookup(ppos)
|
|||
local r = {}
|
||||
local i = 1
|
||||
while t[i] do
|
||||
if t[i]~=train_id then
|
||||
if not r[t[i]] then r[t[i]] = {} end
|
||||
table.insert(r[t[i]], t[i+1])
|
||||
end
|
||||
i = i + 2
|
||||
end
|
||||
return r
|
||||
|
|
Loading…
Reference in New Issue