소스 검색

fix overflow

Kim Kulling 4 년 전
부모
커밋
2391432523
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      code/AssetLib/Collada/ColladaLoader.cpp

+ 3 - 3
code/AssetLib/Collada/ColladaLoader.cpp

@@ -1538,9 +1538,9 @@ void ColladaLoader::AddTexture(aiMaterial &mat,
         map = sampler.mUVId;
     } else {
         map = -1;
-        for (auto 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;
             }
         }