Changeset 5800 for code/branches/core5/src/modules/pong
- Timestamp:
- Sep 26, 2009, 10:21:26 PM (16 years ago)
- Location:
- code/branches/core5/src/modules/pong
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/pong/Pong.cc
r5738 r5800 120 120 if (this->ball_) 121 121 { 122 delete this->ball_;122 this->ball_->destroy(); 123 123 this->ball_ = 0; 124 124 } -
code/branches/core5/src/modules/pong/PongAI.cc
r5738 r5800 61 61 { 62 62 for (std::list<std::pair<Timer<PongAI>*, char> >::iterator it = this->reactionTimers_.begin(); it != this->reactionTimers_.end(); ++it) 63 delete (*it).first;63 (*it).first->destroy(); 64 64 } 65 65 … … 247 247 // Destroy the timer and remove it from the list 248 248 Timer<PongAI>* timer = this->reactionTimers_.front().first; 249 delete timer;249 timer->destroy(); 250 250 251 251 this->reactionTimers_.pop_front();
Note: See TracChangeset
for help on using the changeset viewer.