aboutsummaryrefslogtreecommitdiff
path: root/advtrains/path.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2023-07-01 22:37:09 +0200
committerorwell96 <orwell@bleipb.de>2023-07-01 22:37:09 +0200
commit8b5903a7293491901b555f720d5f79bbac681c1b (patch)
treeef4ca50ae3e15944b80b8dec15f672c687c6f72c /advtrains/path.lua
parent21ed1d23b5a71c962a47b5bc1f67a2833cd8f5ca (diff)
downloadadvtrains-8b5903a7293491901b555f720d5f79bbac681c1b.tar.gz
advtrains-8b5903a7293491901b555f720d5f79bbac681c1b.tar.bz2
advtrains-8b5903a7293491901b555f720d5f79bbac681c1b.zip
Fix path_invalidate_ahead after recent commit
Diffstat (limited to 'advtrains/path.lua')
-rw-r--r--advtrains/path.lua2
1 files changed, 1 insertions, 1 deletions
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