mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 03:15:32 +00:00
Initialize variables
This commit is contained in:
parent
c1512b8b6c
commit
33648313a6
3 changed files with 7 additions and 4 deletions
|
@ -152,6 +152,9 @@ namespace MWPhysics
|
|||
, mNextLOS(0)
|
||||
, mFrameNumber(0)
|
||||
, mTimer(osg::Timer::instance())
|
||||
, mTimeBegin(0)
|
||||
, mTimeEnd(0)
|
||||
, mFrameStart(0)
|
||||
{
|
||||
mNumThreads = Config::computeNumThreads(mThreadSafeBullet);
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ struct Node : public Named
|
|||
// NiNodes (or types derived from NiNodes) can be parents.
|
||||
NiNode *parent;
|
||||
|
||||
bool isBone;
|
||||
bool isBone{false};
|
||||
|
||||
void setBone()
|
||||
{
|
||||
|
@ -378,7 +378,7 @@ struct NiCamera : Node
|
|||
struct NiSwitchNode : public NiNode
|
||||
{
|
||||
unsigned int switchFlags{0};
|
||||
unsigned int initialIndex;
|
||||
unsigned int initialIndex{0};
|
||||
|
||||
void read(NIFStream *nif) override
|
||||
{
|
||||
|
|
|
@ -61,7 +61,7 @@ struct NiTexturingProperty : public Property
|
|||
3 - hilight // These two are for PS2 only?
|
||||
4 - hilight2
|
||||
*/
|
||||
unsigned int apply;
|
||||
unsigned int apply{0};
|
||||
|
||||
/*
|
||||
* The textures in this list are as follows:
|
||||
|
@ -193,7 +193,7 @@ struct S_MaterialProperty
|
|||
// 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 specular, emissive;
|
||||
float glossiness, alpha;
|
||||
float glossiness{0.f}, alpha{0.f};
|
||||
|
||||
void read(NIFStream *nif);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue