- Timestamp:
- Jan 13, 2016, 11:13:30 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3/src/orxonox/weaponsystem/WeaponSystem.cc
r11059 r11062 312 312 else 313 313 { 314 return NULL;314 return nullptr; 315 315 } 316 316 } … … 318 318 void WeaponSystem::addMunition(Munition* munition) 319 319 { 320 if (munition == NULL)320 if (munition == nullptr) 321 321 { 322 322 return; … … 338 338 void WeaponSystem::updateMunition() 339 339 { 340 for ( std::vector<WeaponPack*>::iterator it = this->weaponPacks_.begin(); it != this->weaponPacks_.end(); ++it)341 { 342 (*it)->updateMunition();340 for (WeaponPack* weaponPack : this->weaponPacks_) 341 { 342 weaponPack->updateMunition(); 343 343 } 344 344 }
Note: See TracChangeset
for help on using the changeset viewer.