Skip to content

Commit 8191bde

Browse files
committed
Move nil check on WG.Chobby.Configuration
1 parent c4624da commit 8191bde

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

LuaMenu/widgets/gui_settings_window.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,9 @@ end
18291829

18301830
local firstCall = true
18311831
function widget:ActivateMenu()
1832+
if not (WG.Chobby and WG.Chobby.Configuration) then
1833+
return
1834+
end
18321835
if firstCall then
18331836
local gameSettings = WG.Chobby.Configuration.game_settings
18341837
for key, value in pairs(gameSettings) do
@@ -1838,9 +1841,6 @@ function widget:ActivateMenu()
18381841
firstCall = false
18391842
return
18401843
end
1841-
if not (WG.Chobby and WG.Chobby.Configuration) then
1842-
return
1843-
end
18441844
inLobby = true
18451845
SetLobbyFullscreenMode(WG.Chobby.Configuration.lobby_fullscreen)
18461846
end

0 commit comments

Comments
 (0)