diff --git a/code/XGLLoader.cpp b/code/XGLLoader.cpp index 30f520097..d14e9968d 100644 --- a/code/XGLLoader.cpp +++ b/code/XGLLoader.cpp @@ -711,7 +711,7 @@ unsigned int XGLImporter::ResolveMaterialRef(TempScope& scope) const std::string& s = GetElementName(); if (s == "mat") { ReadMaterial(scope); - return scope.materials_linear.size()-1; + return static_cast(scope.materials_linear.size()-1); } const int id = ReadIndexFromText();