[Orxonox-commit 2217] r6933 - code/branches/presentation3/src/orxonox

scheusso at orxonox.net scheusso at orxonox.net
Thu May 20 14:40:53 CEST 2010


Author: scheusso
Date: 2010-05-20 14:40:53 +0200 (Thu, 20 May 2010)
New Revision: 6933

Modified:
   code/branches/presentation3/src/orxonox/LevelManager.cc
Log:
make sure this won't happen again


Modified: code/branches/presentation3/src/orxonox/LevelManager.cc
===================================================================
--- code/branches/presentation3/src/orxonox/LevelManager.cc	2010-05-20 12:38:40 UTC (rev 6932)
+++ code/branches/presentation3/src/orxonox/LevelManager.cc	2010-05-20 12:40:53 UTC (rev 6933)
@@ -69,6 +69,7 @@
 
     void LevelManager::requestActivity(Level* level)
     {
+        assert( std::find(this->levels_s.begin(), this->levels_s.end(), level)==this->levels_s.end() );
         if( std::find(this->levels_s.begin(), this->levels_s.end(), level)!=this->levels_s.end() )
             return; // level is already in list
         this->levels_s.push_back(level);




More information about the Orxonox-commit mailing list