aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/advtrains/trainlogic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/trainlogic.lua b/advtrains/advtrains/trainlogic.lua
index df7df14..d5658a0 100644
--- a/advtrains/advtrains/trainlogic.lua
+++ b/advtrains/advtrains/trainlogic.lua
@@ -333,7 +333,7 @@ function advtrains.pathpredict(id, train)
if not train.last_pos then
--no chance to recover
atprint("train hasn't saved last-pos, removing train.")
- advtrains.train[id]=nil
+ advtrains.trains[id]=nil
return false
end