- Timestamp:
- Nov 17, 2009, 1:36:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particles2/src/orxonox/weaponsystem/WeaponPack.cc
r6076 r6078 96 96 return; 97 97 98 assert( std::find(this->weapons_.begin(), this->weapons_.end(), weapon)!=this->weapons_.end() ); 99 this->weapons_.erase( std::find(this->weapons_.begin(), this->weapons_.end(), weapon) ); 98 std::vector<Weapon*>::iterator it = std::find(this->weapons_.begin(), this->weapons_.end(), weapon); 99 assert(it != this->weapons_.end()); 100 this->weapons_.erase(it); 100 101 weapon->setWeaponPack(0); 101 102 }
Note: See TracChangeset
for help on using the changeset viewer.