Przeglądaj źródła

Fixed: Initialize all members in STLImporter

Richard 10 lat temu
rodzic
commit
c69e047dfc
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      code/STLLoader.cpp

+ 3 - 0
code/STLLoader.cpp

@@ -106,6 +106,9 @@ bool IsAsciiSTL(const char* buffer, unsigned int fileSize) {
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 STLImporter::STLImporter()
+    : mBuffer(),
+    fileSize(),
+    pScene()
 {}
 
 // ------------------------------------------------------------------------------------------------