fix uninitialized variables in OsgCar found by valgring and cppcheck
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7653 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 40fbf114a72b664fbe4ea8e00ddddf4d2f6faa70 Former-commit-id: fe2025a07661cbdaab9690d03b92e1699988e220
This commit is contained in:
parent
3c76366ccb
commit
2a2cf9d5a7
2 changed files with 11 additions and 8 deletions
|
@ -66,6 +66,7 @@ SDCar::SDCar(void) :
|
|||
nDRM(0),
|
||||
nDRM2(0),
|
||||
steerMovt(0.0),
|
||||
car(NULL),
|
||||
shader(NULL),
|
||||
reflectionMapping(NULL)
|
||||
|
||||
|
@ -78,6 +79,12 @@ SDCar::SDCar(void) :
|
|||
_carLOD = false;
|
||||
|
||||
_carShader = 0;
|
||||
|
||||
for (size_t i = 0; i < 32; ++i)
|
||||
{
|
||||
DRMSelectMask[i] = 0;
|
||||
DRMThreshold[i] = 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
SDCar::~SDCar(void)
|
||||
|
|
|
@ -51,15 +51,11 @@ private :
|
|||
osg::ref_ptr<osg::Group> car_shaded_body;
|
||||
osg::ref_ptr<osg::Group> carEntity;
|
||||
int nSteer;
|
||||
int LODSelectMask[32];
|
||||
float LODThreshold[32];
|
||||
int DRMSelectMask[32];
|
||||
int DRMSelectMask2[32];
|
||||
int DRMSelectMask[32];
|
||||
int nDRM;
|
||||
int nDRM2;
|
||||
float DRMThreshold[32];
|
||||
float DRMThreshold2[32];
|
||||
tdble steerMovt;
|
||||
int nDRM2;
|
||||
float DRMThreshold[32];
|
||||
tdble steerMovt;
|
||||
|
||||
//osg::ref_ptr<osg::Vec3Array> shadowVertices;
|
||||
//osg::ref_ptr<osg::Geometry> quad;
|
||||
|
|
Loading…
Reference in a new issue