Explorar o código

fix index variable for surfaces

Closes: https://github.com/assimp/assimp/issues/4209
IOhannes m zmölnig %!s(int64=3) %!d(string=hai) anos
pai
achega
6e090c88b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/AssetLib/LWO/LWOLoader.cpp

+ 1 - 1
code/AssetLib/LWO/LWOLoader.cpp

@@ -393,7 +393,7 @@ void LWOImporter::InternReadFile(const std::string &pFile,
 
                             // If a RGB color map is explicitly requested delete the
                             // alpha channel - it could theoretically be != 1.
-                            if (_mSurfaces[i].mVCMapType == AI_LWO_RGB)
+                            if (_mSurfaces[j].mVCMapType == AI_LWO_RGB)
                                 pvVC[w]->a = 1.f;
 
                             pvVC[w]++;