Fix a remote crasher
authorunc0rr
Mon, 28 May 2012 00:44:51 +0400
changeset 7133 9f250f79cb79
parent 7131 c0c787eb526e
child 7135 4d863aadd0b2
Fix a remote crasher
QTfrontend/team.cpp
--- a/QTfrontend/team.cpp	Mon May 28 00:43:36 2012 +0400
+++ b/QTfrontend/team.cpp	Mon May 28 00:44:51 2012 +0400
@@ -352,7 +352,7 @@
 
 void HWTeam::setColor(int color)
 {
-    m_color = color;
+    m_color = color % colorsModel->rowCount();
 }