Changeset 7183 for code/trunk/src/orxonox/weaponsystem
- Timestamp:
- Aug 18, 2010, 7:49:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r7163 r7183 222 222 223 223 // Remove the WeaponPack from the WeaponSystem 224 std::vector<WeaponPack*>::iterator it = std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(), wPack);225 assert(it !=this->weaponPacks_.end());226 this->weaponPacks_.erase(it );224 std::vector<WeaponPack*>::iterator it2 = std::find(this->weaponPacks_.begin(),this->weaponPacks_.end(), wPack); 225 assert(it2 !=this->weaponPacks_.end()); 226 this->weaponPacks_.erase(it2); 227 227 } 228 228
Note: See TracChangeset
for help on using the changeset viewer.