diff --git a/Themes/default/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua b/Themes/default/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua index 41f7e9cf15..c7b4f14b70 100644 --- a/Themes/default/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua +++ b/Themes/default/BGAnimations/ScreenGameplay underlay/ScreenFilter.lua @@ -23,7 +23,7 @@ local stepsType = style:GetStepsType() if numPlayers == 1 then local player = GAMESTATE:GetMasterPlayerNumber() local pNum = (player == PLAYER_1) and 1 or 2 - filterAlphas[player] = tonumber(getenv("ScreenFilterP"..pNum)); + filterAlphas[player] = tonumber(getenv("ScreenFilterP"..pNum)) or 0; local pos; -- [ScreenGameplay] PlayerP#Player*Side(s)X @@ -54,7 +54,7 @@ else -- otherwise we need two separate ones. to the pairsmobile! for i, player in ipairs(PlayerNumber) do local pNum = (player == PLAYER_1) and 1 or 2 - filterAlphas[player] = tonumber(getenv("ScreenFilterP"..pNum)); + filterAlphas[player] = tonumber(getenv("ScreenFilterP"..pNum)) or 0; local metricName = string.format("PlayerP%i%sX",pNum,styleType) local pos = THEME:GetMetric("ScreenGameplay",metricName) t[#t+1] = Def.Quad{ @@ -65,4 +65,4 @@ else end end -return t; \ No newline at end of file +return t;