Off by one on colors choice

This commit is contained in:
Caleb Anderson
2010-01-09 22:38:22 -06:00
parent 3a741a7f99
commit c0433f7a41

View File

@@ -16,7 +16,7 @@ namespace OpenRa.Game.Support
s =>
{
var x = new PerfItem(s, colors[nextColor++]);
if (nextColor > colors.Length) nextColor = 0;
if (nextColor >= colors.Length) nextColor = 0;
return x;
});