diff --git a/MshViewer/Source/OpenGlController.cpp b/MshViewer/Source/OpenGlController.cpp index 62ecaac..bee631d 100644 --- a/MshViewer/Source/OpenGlController.cpp +++ b/MshViewer/Source/OpenGlController.cpp @@ -364,7 +364,7 @@ void OpenGLController::loadMsh(const char * path) while (tempPath.back() != '/' && tempPath.back() != '\\') tempPath.pop_back(); - TextureTGA tempTex(std::string(tempPath + vModels.front()->texture).c_str()); + TextureTGA tempTex(std::string(tempPath + it->texture).c_str()); tempData->alpha = tempTex.hasAlpha(); tempData->width = tempTex.getWidth();