uninitialized variables-afx

This commit is contained in:
AzaezelX 2020-05-11 13:54:23 -05:00
parent 157b114ec7
commit 3c0360fd2f
22 changed files with 88 additions and 25 deletions

View file

@ -29,6 +29,8 @@
afxAnimCurve::afxAnimCurve() : usable( false ), final_value( 0.0f ), start_value( 0.0f )
{
evaluator = new afxHermiteEval();
final_time = 0.0f;
start_time = 0.0f;
}
afxAnimCurve::~afxAnimCurve()
@ -277,4 +279,4 @@ void afxAnimCurve::printKey( int index )
{
Key &k = keys[index];
Con::printf( "%f: %f", k.time, k.value );
}
}

View file

@ -27,7 +27,7 @@
#include "afx/util/afxCurveEval.h"
#include "afx/util/afxCurve3D.h"
afxCurve3D::afxCurve3D() : usable( false ), default_vector( 0, 0, 0 )
afxCurve3D::afxCurve3D() : usable( false ), default_vector( 0, 0, 0 ), flip(false)
{
evaluator = new afxHermiteEval();
}
@ -329,4 +329,4 @@ void afxCurve3D::print()
Con::printf( "%f: %f %f %f", p.parameter, p.point.x, p.point.y, p.point.z );
}
Con::printf( "---------------------------------" );
}
}

View file

@ -29,7 +29,7 @@
#include "afx/util/afxPath3D.h"
afxPath3D::afxPath3D() : mStart_time(0), mNum_points(0), mLoop_type(LOOP_CONSTANT)
afxPath3D::afxPath3D() : mStart_time(0), mNum_points(0), mLoop_type(LOOP_CONSTANT), mEnd_time(0.0f)
{
}