aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 6f81a40..8991025 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -251,7 +251,7 @@ advtrains.avt_save = function(remove_players_from_wagons)
local v=advtrains.merge_tables(train)
--then invalidate
if v.index then
- v.restore_add_index=v.index-math.floor(v.index+0.5)
+ v.restore_add_index=v.index-math.floor(v.index+1)
end
v.path=nil
v.path_dist=nil