Changeset 2555 for code/branches/presentation/src
- Timestamp:
- Dec 30, 2008, 9:28:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/gamestates/GSRoot.cc
r2554 r2555 235 235 std::list<statisticsTickInfo>::iterator it = this->statisticsTickTimes_.begin(); 236 236 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) 239 239 { 240 240 do … … 243 243 ++it; 244 244 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); 247 247 } 248 248
Note: See TracChangeset
for help on using the changeset viewer.