Browse Source

Fixed: Initialize members in IRRLoader

Richard 10 years ago
parent
commit
3543bb7e5f
2 changed files with 4 additions and 0 deletions
  1. 2 0
      code/IRRLoader.cpp
  2. 2 0
      code/IRRLoader.h

+ 2 - 0
code/IRRLoader.cpp

@@ -87,6 +87,8 @@ static const aiImporterDesc desc = {
 // ------------------------------------------------------------------------------------------------
 // Constructor to be privately used by Importer
 IRRImporter::IRRImporter()
+    : fps(),
+    configSpeedFlag()
 {}
 
 // ------------------------------------------------------------------------------------------------

+ 2 - 0
code/IRRLoader.h

@@ -166,7 +166,9 @@ private:
         Node(ET t)
             :   type                (t)
             ,   scaling             (1.f,1.f,1.f) // assume uniform scaling by default
+            ,   parent()
             ,   framesPerSecond     (0.f)
+            ,   id()
             ,   sphereRadius        (1.f)
             ,   spherePolyCountX    (100)
             ,   spherePolyCountY    (100)