fix overflow

pull/3635/head
Kim Kulling 2021-02-03 21:07:28 +01:00
parent e6b8ae44cb
commit 2391432523
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}