From 8b5903a7293491901b555f720d5f79bbac681c1b Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 1 Jul 2023 22:37:09 +0200 Subject: Fix path_invalidate_ahead after recent commit --- advtrains/path.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains/path.lua b/advtrains/path.lua index 15a61fe..7676947 100644 --- a/advtrains/path.lua +++ b/advtrains/path.lua @@ -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) local i = idx + 1 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 end train.path_ext_f=idx -- cgit v1.2.3