1
0
forked from 0ad/0ad

Fixes broken color to string conversion in UI. Fixes #939.

This was SVN commit r10164.
This commit is contained in:
historic_bruno 2011-09-02 00:24:30 +00:00
parent 65f3126f04
commit ec6b9dfc28

View File

@ -205,7 +205,7 @@ function initMapSizes()
function iColorToString(color)
{
var string = "0 0 0";
if (color && color.r && color.g && color.b)
if (color && ("r" in color) && ("g" in color) && ("b" in color))
string = color.r + " " + color.g + " " + color.b;
return string;