Set a fallback color

It will be used only if there are no sides, which shouldn't happen, but can.
See issue #2063.
This commit is contained in:
Alexander van Gessel 2017-10-04 14:24:43 +02:00
parent c6408dbd95
commit 523f61c6e7

View file

@ -45,7 +45,7 @@ res.turns_over_advantage = function()
local side_num = -1
local total_score = -1
local side_comparison = ""
local color = nil
local color = "#000000"
for side, team in all_sides() do
if not team.__cfg.hidden then
local r, g, b = 255, 255, 255