minor fix
This commit is contained in:
parent
59e9416f57
commit
e51aa20420
1 changed files with 8 additions and 2 deletions
|
@ -25,7 +25,13 @@ Server_ProtocolHandler::~Server_ProtocolHandler()
|
|||
|
||||
QMapIterator<int, QPair<Server_Game *, Server_Player *> > gameIterator(games);
|
||||
while (gameIterator.hasNext()) {
|
||||
Server_Player *p = gameIterator.next().value().second;
|
||||
gameIterator.next();
|
||||
Server_Game *g = gameIterator.value().first;
|
||||
Server_Player *p = gameIterator.value().second;
|
||||
|
||||
if (authState == UnknownUser)
|
||||
g->removePlayer(p);
|
||||
else
|
||||
p->setProtocolHandler(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue