Skip to content

Commit

Permalink
Merge pull request #180 from Mathu-lmn/master
Browse files Browse the repository at this point in the history
fix(disablegamecontrols) : proper nil check
  • Loading branch information
manups4e authored Sep 25, 2023
2 parents 594ff16 + fd0d1b1 commit e09f6af
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 e09f6af

Please sign in to comment.