Initialize variables

pull/593/head
Andrei Kortunov 4 years ago
parent c1512b8b6c
commit 33648313a6

@ -152,6 +152,9 @@ namespace MWPhysics
, mNextLOS(0) , mNextLOS(0)
, mFrameNumber(0) , mFrameNumber(0)
, mTimer(osg::Timer::instance()) , mTimer(osg::Timer::instance())
, mTimeBegin(0)
, mTimeEnd(0)
, mFrameStart(0)
{ {
mNumThreads = Config::computeNumThreads(mThreadSafeBullet); mNumThreads = Config::computeNumThreads(mThreadSafeBullet);

@ -177,7 +177,7 @@ struct Node : public Named
// NiNodes (or types derived from NiNodes) can be parents. // NiNodes (or types derived from NiNodes) can be parents.
NiNode *parent; NiNode *parent;
bool isBone; bool isBone{false};
void setBone() void setBone()
{ {
@ -378,7 +378,7 @@ struct NiCamera : Node
struct NiSwitchNode : public NiNode struct NiSwitchNode : public NiNode
{ {
unsigned int switchFlags{0}; unsigned int switchFlags{0};
unsigned int initialIndex; unsigned int initialIndex{0};
void read(NIFStream *nif) override void read(NIFStream *nif) override
{ {

@ -61,7 +61,7 @@ struct NiTexturingProperty : public Property
3 - hilight // These two are for PS2 only? 3 - hilight // These two are for PS2 only?
4 - hilight2 4 - hilight2
*/ */
unsigned int apply; unsigned int apply{0};
/* /*
* The textures in this list are as follows: * The textures in this list are as follows:
@ -193,7 +193,7 @@ struct S_MaterialProperty
// The vector components are R,G,B // The vector components are R,G,B
osg::Vec3f ambient{1.f,1.f,1.f}, diffuse{1.f,1.f,1.f}; osg::Vec3f ambient{1.f,1.f,1.f}, diffuse{1.f,1.f,1.f};
osg::Vec3f specular, emissive; osg::Vec3f specular, emissive;
float glossiness, alpha; float glossiness{0.f}, alpha{0.f};
void read(NIFStream *nif); void read(NIFStream *nif);
}; };

Loading…
Cancel
Save