Pārlūkot izejas kodu

collada: fix warning: not inited variable.

Kim Kulling 5 gadi atpakaļ
vecāks
revīzija
5038f21d06
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      code/AssetLib/Collada/ColladaParser.cpp

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

@@ -693,7 +693,7 @@ void ColladaParser::ReadControllerJoints(XmlNode &node, Collada::Controller &pCo
 // Reads the joint weights for the given controller
 // Reads the joint weights for the given controller
 void ColladaParser::ReadControllerWeights(XmlNode &node, Collada::Controller &pController) {
 void ColladaParser::ReadControllerWeights(XmlNode &node, Collada::Controller &pController) {
     // Read vertex count from attributes and resize the array accordingly
     // Read vertex count from attributes and resize the array accordingly
-    int vertexCount;
+    int vertexCount=0;
     XmlParser::getIntAttribute(node, "count", vertexCount);
     XmlParser::getIntAttribute(node, "count", vertexCount);
 
 
     for (XmlNode currentNode = node.first_child(); currentNode; currentNode = currentNode.next_sibling()) {
     for (XmlNode currentNode = node.first_child(); currentNode; currentNode = currentNode.next_sibling()) {