浏览代码

collada: fix warning: not inited variable.

Kim Kulling 5 年之前
父节点
当前提交
1c85676a9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/AssetLib/Collada/ColladaParser.cpp

+ 1 - 1
code/AssetLib/Collada/ColladaParser.cpp

@@ -1416,7 +1416,7 @@ void ColladaParser::ReadDataArray(XmlNode &node) {
     // read attributes
     std::string id;
     XmlParser::getStdStrAttribute(node, "id", id);
-    unsigned int count;
+    unsigned int count = 0;
     XmlParser::getUIntAttribute(node, "count", count);
     std::string v;
     XmlParser::getValueAsString(node, v);