From 6e090c88b8ab0fcdc194a896ca2338a8ed33a749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 7 Dec 2021 12:13:31 +0100 Subject: [PATCH] fix index variable for surfaces Closes: https://github.com/assimp/assimp/issues/4209 --- code/AssetLib/LWO/LWOLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/LWO/LWOLoader.cpp b/code/AssetLib/LWO/LWOLoader.cpp index bc62152c5..801da1d60 100644 --- a/code/AssetLib/LWO/LWOLoader.cpp +++ b/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]++;