Browse Source

collada: fix warning: not inited variable.

Kim Kulling 5 năm trước cách đây
mục cha
commit
1c85676a9c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);