Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7828 for code/branches


Ignore:
Timestamp:
Jan 13, 2011, 9:56:25 PM (14 years ago)
Author:
dafrick
Message:

Fixed bug in LevelManager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutoriallevel/src/orxonox/LevelManager.cc

    r7804 r7828  
    213213        {
    214214            // If this index is bigger than the last, we can optimize a little.
    215             if(index > this->nextIndex_)
     215            if(index < this->nextIndex_)
    216216            {
    217217                this->nextIndex_ = 0;
    218218                this->nextLevel_ = this->availableLevels_.begin();
    219219            }
     220
    220221            while(this->nextIndex_ != index)
    221222            {
Note: See TracChangeset for help on using the changeset viewer.