From 36cbc4c962bb04d1bf188380926d4d0a54ed5dba Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Mon, 11 May 2020 15:53:14 -0500 Subject: [PATCH] uninitialized variables-verve --- .../Verve/Extension/Game/VSpawnSphereSpawnTargetTrack.cpp | 6 ++++-- Engine/source/Verve/VActor/VActorPhysicsController.cpp | 5 +++-- Engine/source/Verve/VPath/VPathEditor.h | 8 +++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Engine/source/Verve/Extension/Game/VSpawnSphereSpawnTargetTrack.cpp b/Engine/source/Verve/Extension/Game/VSpawnSphereSpawnTargetTrack.cpp index d0cc2930a..220362290 100644 --- a/Engine/source/Verve/Extension/Game/VSpawnSphereSpawnTargetTrack.cpp +++ b/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(); } -} \ No newline at end of file +} diff --git a/Engine/source/Verve/VActor/VActorPhysicsController.cpp b/Engine/source/Verve/VActor/VActorPhysicsController.cpp index 5e3332d59..326626015 100644 --- a/Engine/source/Verve/VActor/VActorPhysicsController.cpp +++ b/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 ); } -} \ No newline at end of file +} diff --git a/Engine/source/Verve/VPath/VPathEditor.h b/Engine/source/Verve/VPath/VPathEditor.h index c337edd0c..69c925bd5 100644 --- a/Engine/source/Verve/VPath/VPathEditor.h +++ b/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_ \ No newline at end of file +#endif // _VT_VPATHEDITOR_H_