Skip to content

Commit

Permalink
Merge pull request #861 from AntlerForce/master
Browse files Browse the repository at this point in the history
Nil check before refreshing list of loadgamewindow
  • Loading branch information
AntlerForce authored Dec 17, 2024
2 parents e6fd4b6 + a0d8d9a commit 46e5248
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LuaMenu/widgets/gui_loadgame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

--------------------------------------------------------------------------------
Expand Down

0 comments on commit 46e5248

Please sign in to comment.