aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wagons.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/wagons.lua b/wagons.lua
index e6b6d71..038c448 100644
--- a/wagons.lua
+++ b/wagons.lua
@@ -306,7 +306,7 @@ function advtrains.get_real_path_index(train, pit)
end
index=index-(pos_in_train_left/(train.path_dist[index-1] or 1))
else
- index=index-(pos_in_train_left*(train.path_dist[math.floor(index-1)] or 1))
+ index=index-(pos_in_train_left/(train.path_dist[math.floor(index-1)] or 1))
end
return index
end