QTfrontend/ui/widget/frameTeam.cpp
changeset 6977 6a2ecad333da
parent 6970 59f33a6a4814
child 7005 19cddb42326f
--- a/QTfrontend/ui/widget/frameTeam.cpp	Tue May 01 16:20:12 2012 +0200
+++ b/QTfrontend/ui/widget/frameTeam.cpp	Tue May 01 16:16:09 2012 +0200
@@ -63,7 +63,10 @@
 {
     int idx = availableColors.indexOf(currentColor);
 
-    idx = ++idx % availableColors.size();
+    idx++;
+
+    if (idx >= availableColors.size())
+        idx = 0;
 
     return availableColors.at(idx);
 }