From aa6672433ad244aa81fe4e1f15cbae0d2b85acf4 Mon Sep 17 00:00:00 2001 From: robertthepie Date: Tue, 2 Apr 2024 15:44:23 +0100 Subject: [PATCH] Properly Fix OnSetModOptions so that the global modoptions isn't nil when getModOptionsByKey is called - it uses it --- LuaMenu/widgets/gui_modoptions_panel.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaMenu/widgets/gui_modoptions_panel.lua b/LuaMenu/widgets/gui_modoptions_panel.lua index e22eacafc..81d8139f7 100644 --- a/LuaMenu/widgets/gui_modoptions_panel.lua +++ b/LuaMenu/widgets/gui_modoptions_panel.lua @@ -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)