QTfrontend/teamselect.cpp
changeset 147 52a3c431db8a
parent 140 50ccde437ea1
child 150 d9e8a336195c
--- a/QTfrontend/teamselect.cpp	Fri Sep 15 13:47:01 2006 +0000
+++ b/QTfrontend/teamselect.cpp	Fri Sep 15 15:45:30 2006 +0000
@@ -34,6 +34,8 @@
     curDontPlayingTeams.push_back(*itPlay);
     curPlayingTeams.erase(itPlay);
   } else {
+    // return if max playing teams reached
+    if(curPlayingTeams.size()>2) return;
     // dont playing team => playing
     curPlayingTeams.push_back(*itDontPlay);
     curDontPlayingTeams.erase(itDontPlay);