Changeset 11018 for code/trunk/src/modules/pong
- Timestamp:
- Jan 2, 2016, 8:59:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pong/PongAI.cc
r10727 r11018 78 78 { 79 79 for (std::list<std::pair<Timer*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it) 80 it->first->destroy();80 delete it->first; 81 81 } 82 82 … … 380 380 381 381 // Destroy the timer and remove it from the list 382 Timer* timer = this->reactionTimers_.front().first; 383 timer->destroy(); 384 382 delete this->reactionTimers_.front().first; 385 383 this->reactionTimers_.pop_front(); 386 384 }
Note: See TracChangeset
for help on using the changeset viewer.