Skip to content

Commit

Permalink
Properly Fix OnSetModOptions
Browse files Browse the repository at this point in the history
so that the global modoptions isn't nil when getModOptionsByKey is called - it uses it
  • Loading branch information
robertthepie committed Apr 2, 2024
1 parent c73587b commit aa66724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LuaMenu/widgets/gui_modoptions_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ local function InitializeModoptionsDisplay()
local function OnSetModOptions(listener, modopts)
local text = ""
local empty = true
modopts = modopts or {}
modoptions = modoptions 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)
Expand Down

0 comments on commit aa66724

Please sign in to comment.