Skip to content

Commit

Permalink
fix(disablegamecontrols) : proper nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathu-lmn committed Sep 24, 2023
1 parent 3705b5c commit fd0d1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ end
---DisableNonMenuControls
---@param bool boolean
function UIMenu:DisableGameControls(bool)
if bool then
if bool ~= nil then
self.disableGameControls = bool
else
return self.disableGameControls
Expand Down

0 comments on commit fd0d1b1

Please sign in to comment.