Skip to content

Commit

Permalink
Fix waypoint numbers not being cleared up when spidertron is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed Dec 16, 2024
1 parent 4ff959b commit 92c12b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function Control.clear_spidertron_waypoints(spidertron_id)
local hide_gui
if type(spidertron_id) == "number" then
---@cast spidertron_id UnitNumber
waypoint_info = storage.spidertron_waypoints[unit_number]
waypoint_info = storage.spidertron_waypoints[spidertron_id]
if not waypoint_info then return end
unit_number = spidertron_id
else
Expand Down Expand Up @@ -282,6 +282,10 @@ local function config_changed_setup(changed_data)
end
end
end
if old_version[2] < 5 or (old_version[2] == 5 and old_version[3] < 8) then
-- Pre 2.5.8
reset_render_objects()
end
end
end

Expand Down

0 comments on commit 92c12b9

Please sign in to comment.