Changeset 3227 for code/branches/netp6/src/network/GamestateManager.cc
- Timestamp:
- Jun 23, 2009, 8:53:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp6/src/network/GamestateManager.cc
r3214 r3227 61 61 { 62 62 if( this->reference ) 63 delete this->reference;64 for( std::map<unsigned int, packet::Gamestate*>::iterator it = gamestateQueue.begin(); it != gamestateQueue.end(); it++)63 delete this->reference;std::map<unsigned int, packet::Gamestate*>::iterator it; 64 for( it = gamestateQueue.begin(); it != gamestateQueue.end(); ++it ) 65 65 delete (*it).second; 66 std::map<unsigned int, std::map<unsigned int, packet::Gamestate*> >::iterator it1; 67 std::map<unsigned int, packet::Gamestate*>::iterator it2; 68 for( it1 = gamestateMap_.begin(); it1 != gamestateMap_.end(); ++it1 ) 69 { 70 for( it2 = it1->second.begin(); it2 != it1->second.end(); ++it2 ) 71 delete (*it2).second; 72 } 66 73 delete trafficControl_; 67 74 }
Note: See TracChangeset
for help on using the changeset viewer.