diff options
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 6e60fe6..5bbc565 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -245,6 +245,7 @@ function advtrains.train_ensure_init(id, train) end if not train.last_connid then atwarn("Train",id,": Restoring path: no last_connid set! Will assume 1") + train.last_connid = 1 end local result = advtrains.path_create(train, train.last_pos, train.last_connid or 1, train.last_frac or 0) |