Changeset 3b6f46b in network-game for server/server.cpp


Ignore:
Timestamp:
Dec 23, 2013, 5:28:52 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
8ce793b
Parents:
e5b96e2
Message:

Minor code changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/server.cpp

    re5b96e2 r3b6f46b  
    538538
    539539               map<unsigned int, Player*>::iterator it2;
    540                for (it2 = mapPLayers.begin(); it2 != mapPLayers.end(); it2++)
     540               for (it2 = mapPlayers.begin(); it2 != mapPlayers.end(); it2++)
    541541               {
    542542                  if ( msgProcessor.sendMessage(&serverMsg, sock, &(it2->second->addr), &outputLog) < 0 )
     
    546546               // erase game from server
    547547               mapGames.erase(itGames);
     548               delete game;
    548549            }else
    549550               itGames++;
Note: See TracChangeset for help on using the changeset viewer.