- Timestamp:
- May 28, 2011, 8:53:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/worldentities/pawns/SpaceShip.cc
r8607 r8648 374 374 void SpaceShip::removeAllEngines() 375 375 { 376 for(unsigned int i=0; i<this->engineList_.size(); i++) 377 this->engineList_[i]->destroy(); 376 while(this->engineList_.size()) 377 this->engineList_.back()->destroy(); 378 } 379 380 void SpaceShip::removeEngine(Engine* engine) 381 { 382 for(std::vector<Engine*>::iterator it=this->engineList_.begin(); it!=this->engineList_.end(); ++it) 383 { 384 if(*it==engine) 385 { 386 this->engineList_.erase(it); 387 return; 388 } 389 } 378 390 } 379 391
Note: See TracChangeset
for help on using the changeset viewer.