Changeset 646 for code/branches/FICN/src/orxonox/objects/Timer.h
- Timestamp:
- Dec 19, 2007, 5:04:07 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/Timer.h
r640 r646 136 136 { 137 137 // Iterate through all Timers 138 for (Iterator<TimerBase> it = ObjectList<TimerBase>::start(); it; ++it)138 for (Iterator<TimerBase> it = ObjectList<TimerBase>::start(); it; ) 139 139 { 140 140 if (it->isActive()) … … 151 151 it->stopTimer(); // Stop the timer if we don't want to loop 152 152 153 it->run();153 (it++)->run(); 154 154 } 155 else 156 ++it; 155 157 } 158 else 159 ++it; 156 160 } 157 161
Note: See TracChangeset
for help on using the changeset viewer.