- Timestamp:
- Dec 2, 2015, 11:32:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/weaponsystem/WeaponSystem.cc
r10916 r10917 196 196 197 197 // Assign the desired weaponmode to the firemodes 198 for ( auto& mapEntry : this->weaponSets_)198 for (const auto& mapEntry : this->weaponSets_) 199 199 { 200 200 unsigned int weaponmode = wPack->getDesiredWeaponmode(mapEntry.first); … … 219 219 220 220 // Remove all added links from the WeaponSets 221 for ( auto& mapEntry : this->weaponSets_)221 for (const auto& mapEntry : this->weaponSets_) 222 222 mapEntry.second->removeWeaponmodeLink(wPack); 223 223 … … 268 268 // Check if the WeaponSet belongs to this WeaponSystem 269 269 bool foundWeaponSet = false; 270 for ( auto& mapEntry : this->weaponSets_)270 for (const auto& mapEntry : this->weaponSets_) 271 271 { 272 272 if (mapEntry.second == wSet) … … 296 296 void WeaponSystem::reload() 297 297 { 298 for ( auto& mapEntry : this->weaponSets_)298 for (const auto& mapEntry : this->weaponSets_) 299 299 mapEntry.second->reload(); 300 300 }
Note: See TracChangeset
for help on using the changeset viewer.