Explorar el Código

Fehler behoben

Kolja Strohm hace 5 años
padre
commit
c982e1f31e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Asteroids/Spiel/Karte/Karte.cpp

+ 1 - 1
Asteroids/Spiel/Karte/Karte.cpp

@@ -196,7 +196,7 @@ int Karte::getObjektAnzahl() const
 int Karte::getTeamNummer( int sNum ) const
 {
     int min = teamGröße->get( 0 );
-    for( int i = 1; i < teamAnzahl; i++ )
+    for( int i = 1; i <= teamAnzahl; i++ )
     {
         if( sNum <= min )
             return i - 1;