Skip to content

Commit

Permalink
Merge pull request #623 from robertthepie/FixSetModoption
Browse files Browse the repository at this point in the history
Properly Fix OnSetModOptions
  • Loading branch information
Ruwetuin authored Apr 2, 2024
2 parents c73587b + aa66724 commit beece48
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 beece48

Please sign in to comment.