aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-01-25 12:26:43 +0100
committerorwell96 <mono96.mml@gmail.com>2017-01-25 12:26:43 +0100
commitbd0a4a51b8b021bd2014e2918330c53ddb0c5796 (patch)
treeb0c681eff9a91edefa29945db53a08b3c1acf17b /advtrains
parentedc7f1ec5f1d045f23eb53f6db8c5ed1daf55abf (diff)
downloadadvtrains-bd0a4a51b8b021bd2014e2918330c53ddb0c5796.tar.gz
advtrains-bd0a4a51b8b021bd2014e2918330c53ddb0c5796.tar.bz2
advtrains-bd0a4a51b8b021bd2014e2918330c53ddb0c5796.zip
Fix typo that caused crash
Diffstat (limited to 'advtrains')
-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