Переглянути джерело

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
     // read attributes
     std::string id;
     std::string id;
     XmlParser::getStdStrAttribute(node, "id", id);
     XmlParser::getStdStrAttribute(node, "id", id);
-    unsigned int count;
+    unsigned int count = 0;
     XmlParser::getUIntAttribute(node, "count", count);
     XmlParser::getUIntAttribute(node, "count", count);
     std::string v;
     std::string v;
     XmlParser::getValueAsString(node, v);
     XmlParser::getValueAsString(node, v);