Skip to content

Commit

Permalink
gui_modoptions_panel: prevent using global var
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwetuin committed Apr 2, 2024
1 parent e7beac2 commit c73587b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LuaMenu/widgets/gui_modoptions_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,11 @@ local function InitializeModoptionsDisplay()
return value
end

local function OnSetModOptions(listener, modoptions)
local function OnSetModOptions(listener, modopts)
local text = ""
local empty = true
modoptions = modoptions or {}
for key, value in pairs(modoptions) do
modopts = modopts or {}
for key, value in pairs(modopts) do
if modoptionDefaults[key] == nil or modoptionDefaults[key] ~= value or key == "ranked_game" then
local option = getModOptionByKey(key)
local name = option.name and option.name or key
Expand Down

0 comments on commit c73587b

Please sign in to comment.