Browse Source

[3MF] Silence uninitialized variable warning

This is a false positive but the compiler can't see it
Turo Lamminen 4 years ago
parent
commit
3e1c785d31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/AssetLib/3MF/D3MFImporter.cpp

+ 1 - 1
code/AssetLib/3MF/D3MFImporter.cpp

@@ -427,7 +427,7 @@ private:
                 aiFace face = ReadTriangle(currentNode);
                 faces.push_back(face);
 
-                int pid, p1;
+                int pid = 0, p1;
                 bool hasPid = getNodeAttribute(currentNode, D3MF::XmlTag::pid, pid);
                 bool hasP1 = getNodeAttribute(currentNode, D3MF::XmlTag::p1, p1);