Check waypoints is valid

master
Oversword 2021-09-05 07:52:31 +01:00
parent 3fffa41eaf
commit 2292b53368
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ ui.register_page("waypoints", {
end
local waypoint = waypoints.data[sel] or {}
local temp = waypoints_temp[player_name][sel] or {}
local temp = (waypoints_temp[player_name] and waypoints_temp[player_name][sel]) or {}
local default_name = S("Waypoint @1", sel)
-- Main buttons: