Parcourir la source

Fix for issue #3445

Add const to avoid creating a temporary copy.

This should fix the cmake compilation error on XGLLoader.cpp shown in bug #3445

The fix is similar to commit bbe6f7f213b5e2ee689146df5c068dc1a55ea919
Jukka Maatta il y a 4 ans
Parent
commit
6848a18999
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      code/AssetLib/XGL/XGLLoader.cpp

+ 1 - 1
code/AssetLib/XGL/XGLLoader.cpp

@@ -598,7 +598,7 @@ bool XGLImporter::ReadMesh(XmlNode &node, TempScope &scope) {
 	}
 
 	// finally extract output meshes and add them to the scope
-	typedef std::pair<unsigned int, TempMaterialMesh> pairt;
+	typedef std::pair<const unsigned int, TempMaterialMesh> pairt;
 	for (const pairt &p : bymat) {
 		aiMesh *const m = ToOutputMesh(p.second);
 		scope.meshes_linear.push_back(m);