[Orxonox-commit 3135] r7828 - code/branches/tutoriallevel/src/orxonox

dafrick at orxonox.net dafrick at orxonox.net
Thu Jan 13 21:56:25 CET 2011


Author: dafrick
Date: 2011-01-13 21:56:25 +0100 (Thu, 13 Jan 2011)
New Revision: 7828

Modified:
   code/branches/tutoriallevel/src/orxonox/LevelManager.cc
Log:
Fixed bug in LevelManager.


Modified: code/branches/tutoriallevel/src/orxonox/LevelManager.cc
===================================================================
--- code/branches/tutoriallevel/src/orxonox/LevelManager.cc	2011-01-13 19:25:19 UTC (rev 7827)
+++ code/branches/tutoriallevel/src/orxonox/LevelManager.cc	2011-01-13 20:56:25 UTC (rev 7828)
@@ -212,11 +212,12 @@
         else
         {
             // If this index is bigger than the last, we can optimize a little.
-            if(index > this->nextIndex_)
+            if(index < this->nextIndex_)
             {
                 this->nextIndex_ = 0;
                 this->nextLevel_ = this->availableLevels_.begin();
             }
+
             while(this->nextIndex_ != index)
             {
                 this->nextIndex_++;




More information about the Orxonox-commit mailing list