Ver Fonte

Fixed: Initialize all members in MD2Importer

Richard há 10 anos atrás
pai
commit
abc47f1b4e
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      code/MD2Loader.cpp

+ 4 - 0
code/MD2Loader.cpp

@@ -92,6 +92,10 @@ void MD2::LookupNormalIndex(uint8_t iNormalIndex,aiVector3D& vOut)
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 MD2Importer::MD2Importer()
+    : configFrameID(),
+    m_pcHeader(),
+    mBuffer(),
+    fileSize()
 {}
 
 // ------------------------------------------------------------------------------------------------