From a0d8d9ab3265af3406973199f098c65f10a7dabb Mon Sep 17 00:00:00 2001 From: Moose <124457076+AntlerForce@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:03:23 -0700 Subject: [PATCH] Nil check before refreshing list of loadgamewindow --- LuaMenu/widgets/gui_loadgame.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LuaMenu/widgets/gui_loadgame.lua b/LuaMenu/widgets/gui_loadgame.lua index 23b29972f..e4d3ad4e6 100644 --- a/LuaMenu/widgets/gui_loadgame.lua +++ b/LuaMenu/widgets/gui_loadgame.lua @@ -515,7 +515,11 @@ function LoadGameWindow.GetControl() end function LoadGameWindow.RefreshSaveList() - WG.Delay(function () controlFuncs.RefreshSaveList() end, 0.5) + WG.Delay(function () + if controlFuncs then + controlFuncs.RefreshSaveList() + end + end, 0.5) end --------------------------------------------------------------------------------