Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2555


Ignore:
Timestamp:
Dec 30, 2008, 9:28:38 PM (16 years ago)
Author:
rgrieder
Message:

Fixed two bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/gamestates/GSRoot.cc

    r2554 r2555  
    235235            std::list<statisticsTickInfo>::iterator it = this->statisticsTickTimes_.begin();
    236236            assert(it != this->statisticsTickTimes_.end());
    237             uint64_t lastTime = timeAfterTick - statisticsAvgLength_;
    238             if (it->tickTime < lastTime)
     237            int64_t lastTime = timeAfterTick - statisticsAvgLength_;
     238            if ((int64_t)it->tickTime < lastTime)
    239239            {
    240240                do
     
    243243                    ++it;
    244244                    assert(it != this->statisticsTickTimes_.end());
    245                 } while (it->tickTime < lastTime);
    246                 this->statisticsTickTimes_.erase(this->statisticsTickTimes_.begin(), --it);
     245                } while ((int64_t)it->tickTime < lastTime);
     246                this->statisticsTickTimes_.erase(this->statisticsTickTimes_.begin(), it);
    247247            }
    248248
Note: See TracChangeset for help on using the changeset viewer.