- Timestamp:
- Nov 17, 2009, 1:36:21 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/particles2/src/orxonox/weaponsystem/WeaponSystem.cc
r6076 r6078 221 221 222 222 // Remove the WeaponPack from the WeaponSystem 223 assert( std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(),wPack)!=this->weaponPacks_.end() ); 224 this->weaponPacks_.erase( std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(),wPack) ); 223 std::vector<WeaponPack*>::iterator it = std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(), wPack); 224 assert(it !=this->weaponPacks_.end()); 225 this->weaponPacks_.erase(it); 225 226 } 226 227
Note: See TracChangeset
for help on using the changeset viewer.