From 38c611a02c3ed8af773710e2d2345b8e42893647 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 30 Aug 2021 08:33:35 +0200 Subject: [PATCH] Update ColladaLoader.cpp --- code/AssetLib/Collada/ColladaLoader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/AssetLib/Collada/ColladaLoader.cpp b/code/AssetLib/Collada/ColladaLoader.cpp index a7b5ef5ef..f7b5f2278 100644 --- a/code/AssetLib/Collada/ColladaLoader.cpp +++ b/code/AssetLib/Collada/ColladaLoader.cpp @@ -1543,9 +1543,9 @@ void ColladaLoader::AddTexture(aiMaterial &mat, map = sampler.mUVId; } else { map = -1; - for (char it : sampler.mUVChannel) { - if (IsNumeric(it)) { - map = strtoul10(&it); + for (std::string::const_iterator it = sampler.mUVChannel.begin(); it != sampler.mUVChannel.end(); ++it) { + if (IsNumeric(*it)) { + map = strtoul10(&(*it)); break; } }