瀏覽代碼

uninitialized variables-verve

AzaezelX 5 年之前
父節點
當前提交
36cbc4c962

+ 4 - 2
Engine/source/Verve/Extension/Game/VSpawnSphereSpawnTargetTrack.cpp

@@ -29,7 +29,9 @@ IMPLEMENT_CONOBJECT( VSpawnSphereSpawnTargetTrack );
 
 VSpawnSphereSpawnTargetTrack::VSpawnSphereSpawnTargetTrack( void )
 {
-    setLabel( "SpawnTargetTrack" );
+   mDespawnOnStop = false;
+   mDespawnOnLoop = false;
+   setLabel( "SpawnTargetTrack" );
 }
 
 void VSpawnSphereSpawnTargetTrack::initPersistFields( void )
@@ -152,4 +154,4 @@ void VSpawnSphereSpawnTargetTrack::despawnTargets( void )
         // Delete the Object.
         object->deleteObject();
     }
-}
+}

+ 3 - 2
Engine/source/Verve/VActor/VActorPhysicsController.cpp

@@ -49,7 +49,8 @@ VActorPhysicsController::VActorPhysicsController( void ) :
         mControlState( k_NullControlState ),
         mMoveState( k_NullMove ),
         mVelocity( VectorF::Zero ),
-        mGravity( 0.f, 0.f, -9.8f )
+        mGravity( 0.f, 0.f, -9.8f ),
+        mOnGround(false)
 {
     // Void.
 }
@@ -1274,4 +1275,4 @@ void VActorPhysicsController::unpackUpdate( NetConnection *pConnection, BitStrea
         // Apply.
         setPosition( position );
     }
-}
+}

+ 5 - 3
Engine/source/Verve/VPath/VPathEditor.h

@@ -199,7 +199,7 @@ private:
     public:
 
         VPathEditorEditPathAction( const UTF8 *pName = "" ) :
-                UndoAction( pName )
+                UndoAction( pName ), mEditor(NULL), mPath(NULL)
         {
             // Void.
         };
@@ -218,9 +218,11 @@ private:
     public:
 
         VPathEditorEditNodeAction( const UTF8 *pName = "" ) :
-                UndoAction( pName )
+                UndoAction( pName ), mEditor(NULL), mPath(NULL), mNodeIndex(0), mNodeWeight(0.0f)
         {
             // Void.
+           mNodeOrientation.Type = VPathNode::k_OrientationFree;
+           mNodeOrientation.Point = Point3F(0.0f, 0.0f, 0.0f);
         };
 
         VPathEditor               *mEditor;
@@ -290,4 +292,4 @@ namespace Utility
 
 //-----------------------------------------------------------------------------
 
-#endif // _VT_VPATHEDITOR_H_
+#endif // _VT_VPATHEDITOR_H_