1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Competitive scoreboard: fix crash

This commit is contained in:
Jbleezy 2024-01-23 23:21:19 -08:00
parent 78a024f52c
commit 1045296bb7

View File

@ -289,11 +289,12 @@ CoD.CompetitiveScoreboard.CompetitiveScoreHide = function(PlayerScoreListWidget,
end
CoD.CompetitiveScoreboard.CompetitiveScoreTextShowPlayerColor = function(Text, ClientIndex, AnimDelay)
local PlayerColorsIndex = (ClientIndex - 1) % 4 + 1
if not AnimDelay then
AnimDelay = 0
end
Text:beginAnimation("showplayercolor", AnimDelay)
Text:setRGB(CoD.Zombie.PlayerColors[ClientIndex].r, CoD.Zombie.PlayerColors[ClientIndex].g, CoD.Zombie.PlayerColors[ClientIndex].b)
Text:setRGB(CoD.Zombie.PlayerColors[PlayerColorsIndex].r, CoD.Zombie.PlayerColors[PlayerColorsIndex].g, CoD.Zombie.PlayerColors[PlayerColorsIndex].b)
end
CoD.CompetitiveScoreboard.UpdateVisibility = function(CompetitiveScoreboardWidget, ClientInstance)