浏览代码

Merge pull request #3454 from jsmaatta/master

Fix for issue #3445
Kim Kulling 4 年之前
父节点
当前提交
f713d30e9b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 	// 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) {
 	for (const pairt &p : bymat) {
 		aiMesh *const m = ToOutputMesh(p.second);
 		aiMesh *const m = ToOutputMesh(p.second);
 		scope.meshes_linear.push_back(m);
 		scope.meshes_linear.push_back(m);