From fd0d1b1fa78cba5dae3cab77ca8528b3173e0f4d Mon Sep 17 00:00:00 2001 From: Mathu-lmn <80094438+Mathu-lmn@users.noreply.github.com> Date: Mon, 25 Sep 2023 01:36:04 +0200 Subject: [PATCH] fix(disablegamecontrols) : proper nil check --- ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua index 471943f5..583048f0 100644 --- a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua +++ b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua @@ -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