- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/worldentities/ControllableEntity.cc
r10821 r10916 165 165 { 166 166 unsigned int i = 0; 167 for ( const auto & elem: this->cameraPositions_)167 for (CameraPosition* cameraPosition : this->cameraPositions_) 168 168 { 169 169 if (i == index) 170 return (elem);170 return cameraPosition; 171 171 ++i; 172 172 } … … 180 180 181 181 unsigned int counter = 0; 182 for ( const auto & elem: this->cameraPositions_)183 { 184 if ( (elem)== this->currentCameraPosition_)182 for (CameraPosition* cameraPosition : this->cameraPositions_) 183 { 184 if (cameraPosition == this->currentCameraPosition_) 185 185 break; 186 186 counter++; … … 477 477 if (parent) 478 478 { 479 for ( auto & elem: this->cameraPositions_)480 if ( (elem)->getIsAbsolute())481 parent->attach( (elem));479 for (CameraPosition* cameraPosition : this->cameraPositions_) 480 if (cameraPosition->getIsAbsolute()) 481 parent->attach(cameraPosition); 482 482 } 483 483 }
Note: See TracChangeset
for help on using the changeset viewer.