server bugfix

This commit is contained in:
Max-Wilhelm Bruker 2009-09-30 19:41:36 +02:00
parent d54d9f0d85
commit dff26376fd
2 changed files with 5 additions and 4 deletions

View file

@ -156,7 +156,9 @@ void Server::broadcastChannelUpdate()
void Server::gameClosing()
{
qDebug("Server::gameClosing");
games.remove(games.key(static_cast<ServerGame *>(sender())));
ServerGame *game = static_cast<ServerGame *>(sender());
broadcastGameListUpdate(game);
games.remove(games.key(game));
}
void Server::removePlayer(ServerSocket *player)