Cause was a cascaded crash, original cause was something different
This commit is contained in:
orwell96 2018-10-17 17:45:51 +02:00
parent 87621caf1f
commit c6bef1c358
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ end
-- Prints a path using the passed print function
-- This function should be 'atprint', 'atlog', 'atwarn' or 'atdebug', because it needs to use print_concat_table
function advtrains.path_print(train, printf)
if not train.path then
printf("path_print: Path is invalidated/inexistant.")
return
end
printf("i: CP Position Dir CN ->Dist->")
for i = train.path_ext_b, train.path_ext_f do
if i==train.path_trk_b then