Actually set last_connid to 1, to prevent warning

master
orwell96 2018-10-29 23:42:47 +01:00
parent 1ff809b883
commit 0a982b6356
1 changed files with 1 additions and 0 deletions

View File

@ -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)