diff options
author | orwell96 <orwell@bleipb.de> | 2018-10-29 23:42:47 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-10-29 23:42:47 +0100 |
commit | 0a982b6356b2f4b6a28e74f9f90c4f584169a96d (patch) | |
tree | 5db077f4f7c65ef864a02f246c0418e4ea331a63 | |
parent | 1ff809b8837ec1a4d06672e9b4bc12b1230575b7 (diff) | |
download | advtrains-0a982b6356b2f4b6a28e74f9f90c4f584169a96d.tar.gz advtrains-0a982b6356b2f4b6a28e74f9f90c4f584169a96d.tar.bz2 advtrains-0a982b6356b2f4b6a28e74f9f90c4f584169a96d.zip |
Actually set last_connid to 1, to prevent warning
-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) |