QTfrontend/teamselect.cpp
changeset 150 d9e8a336195c
parent 147 52a3c431db8a
child 151 9eb5a4cee35e
--- a/QTfrontend/teamselect.cpp	Sat Sep 16 15:15:30 2006 +0000
+++ b/QTfrontend/teamselect.cpp	Sat Sep 16 17:24:41 2006 +0000
@@ -35,7 +35,7 @@
     curPlayingTeams.erase(itPlay);
   } else {
     // return if max playing teams reached
-    if(curPlayingTeams.size()>2) return;
+    if(framePlaying->isFullTeams()) return;
     // dont playing team => playing
     curPlayingTeams.push_back(*itDontPlay);
     curDontPlayingTeams.erase(itDontPlay);