CModelNode: Initialize all class variables

Provides a consistent initial state.
This commit is contained in:
Lioncash 2020-06-21 02:46:18 -04:00
parent c19017f7ad
commit 62b08a0b14
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
class CModelNode : public CSceneNode
{
TResPtr<CModel> mpModel;
uint32 mActiveMatSet;
uint32 mActiveMatSet = 0;
bool mWorldModel = false;
bool mForceAlphaOn = false;
CColor mTintColor{CColor::White()};
@ -15,7 +15,7 @@ class CModelNode : public CSceneNode
CColor mScanOverlayColor;
public:
explicit CModelNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = 0, CModel *pModel = 0);
explicit CModelNode(CScene *pScene, uint32 NodeID, CSceneNode *pParent = nullptr, CModel *pModel = nullptr);
ENodeType NodeType() override;
void PostLoad() override;