- 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/Weapon.cc
r10916 r10917 61 61 this->weaponPack_->removeWeapon(this); 62 62 63 for ( auto& mapEntry : this->weaponmodes_)63 for (const auto& mapEntry : this->weaponmodes_) 64 64 mapEntry.second->destroy(); 65 65 } … … 136 136 void Weapon::reload() 137 137 { 138 for ( auto& mapEntry : this->weaponmodes_)138 for (const auto& mapEntry : this->weaponmodes_) 139 139 mapEntry.second->reload(); 140 140 } … … 148 148 void Weapon::notifyWeaponModes() 149 149 { 150 for ( auto& mapEntry : this->weaponmodes_)150 for (const auto& mapEntry : this->weaponmodes_) 151 151 mapEntry.second->setWeapon(this); 152 152 }
Note: See TracChangeset
for help on using the changeset viewer.