diff --git a/code/IRRLoader.cpp b/code/IRRLoader.cpp index fcf894e6a..cc0d2c5f4 100644 --- a/code/IRRLoader.cpp +++ b/code/IRRLoader.cpp @@ -1372,8 +1372,7 @@ void IRRImporter::InternReadFile( const std::string& pFile, /* Now iterate through all cameras and compute their final (horizontal) FOV */ - for (std::vector::iterator it = cameras.begin(), end = cameras.end();it != end; ++it) { - aiCamera* cam = *it; + for (aiCamera *cam : cameras) { // screen aspect could be missing if (cam->mAspect) {