Browse Source

Iteratoren werden jetzt benutzt

Kolja Strohm 6 years ago
parent
commit
6298753e39
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Minigame Server/MinigameServer.cpp

+ 3 - 3
Minigame Server/MinigameServer.cpp

@@ -715,11 +715,11 @@ void MSKlient::thread()
                 int anz = ms->zDB()->getMinigameOptionList( mName, &oList );
                 delete[] mName;
                 klient->sendeEncrypted( (char*)&anz, 4 );
-                for( auto t = oList.getArray(); t.set && t.var; t++ )
+                for( auto t = oList.getIterator(); t && t._; t++ )
                 {
-                    l = (char)t.var->getLength();
+                    l = (char)t->getLength();
                     klient->sendeEncrypted( (char*)&l, 1 );
-                    klient->sendeEncrypted( t.var->getText(), l );
+                    klient->sendeEncrypted( t->getText(), l );
                 }
                 break;
             }