From bd0a4a51b8b021bd2014e2918330c53ddb0c5796 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 25 Jan 2017 12:26:43 +0100 Subject: [PATCH] Fix typo that caused crash --- advtrains/advtrains/trainlogic.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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