Fix path_invalidate_ahead after recent commit

This commit is contained in:
orwell96 2023-07-01 22:37:09 +02:00
parent 21ed1d23b5
commit 8b5903a729
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ function advtrains.path_invalidate_ahead(train, start_idx, ignore_when_passed)
-- leave current node in path, it won't change. What might change is the path onward from here (e.g. switch) -- leave current node in path, it won't change. What might change is the path onward from here (e.g. switch)
local i = idx + 1 local i = idx + 1
while train.path[i] do while train.path[i] do
advtrains.occ.clear_item(train.id, advtrains.round_vector_floor_y(train.path[i])) advtrains.occ.clear_specific_item(train.id, advtrains.round_vector_floor_y(train.path[i]), i)
i = i+1 i = i+1
end end
train.path_ext_f=idx train.path_ext_f=idx