- Timestamp:
- Aug 18, 2010, 7:41:10 PM (14 years ago)
- Location:
- code/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/Serialise.h
r7163 r7182 684 684 } 685 685 686 template <class T> inline void loadAndIncrease( conststd::set<T>& variable, uint8_t*& mem )686 template <class T> inline void loadAndIncrease(std::set<T>& variable, uint8_t*& mem ) 687 687 { 688 688 uint32_t nrOfElements = 0; 689 689 loadAndIncrease( nrOfElements, mem ); 690 typename std::set<T>:: const_iterator it = variable.begin();690 typename std::set<T>::iterator it = variable.begin(); 691 691 for( uint32_t i = 0; i<nrOfElements; ++i ) 692 692 { … … 695 695 while( it!=variable.end() && *it!=temp ) 696 696 { 697 ((std::set<T>*)(&variable))->erase(it++);697 variable.erase(it++); 698 698 ++it; 699 699 } 700 700 if( it==variable.end() ) 701 701 { 702 ((std::set<T>*)(&variable))->insert(temp);702 variable.insert(temp); 703 703 } 704 704 } -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.cc
r7163 r7182 155 155 156 156 // Remove all inactive SpawnPoints from the list. 157 for (std::set<SpawnPoint*>:: const_iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); )157 for (std::set<SpawnPoint*>::iterator it = teamSpawnPoints.begin(); it != teamSpawnPoints.end(); ) 158 158 { 159 159 if(!(*it)->isActive())
Note: See TracChangeset
for help on using the changeset viewer.