diff --git a/code/SplitLargeMeshes.cpp b/code/SplitLargeMeshes.cpp index 00bdc2ee3..5e21ec6b8 100644 --- a/code/SplitLargeMeshes.cpp +++ b/code/SplitLargeMeshes.cpp @@ -459,11 +459,9 @@ void SplitLargeMeshesProcess_Vertex::SplitMesh( if (iBase) { // we can't use memset here we unsigned int needn' be 32 bits - for (std::vector::iterator - iter = avWasCopied.begin(),end = avWasCopied.end(); - iter != end;++iter) + for (auto &elem : avWasCopied) { - (*iter) = 0xffffffff; + elem = 0xffffffff; } }