From 62b08a0b14972c0779affb10c43dac7b566adae3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 21 Jun 2020 02:46:18 -0400 Subject: [PATCH] CModelNode: Initialize all class variables Provides a consistent initial state. --- src/Core/Scene/CModelNode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Scene/CModelNode.h b/src/Core/Scene/CModelNode.h index 85039145..cf8183af 100644 --- a/src/Core/Scene/CModelNode.h +++ b/src/Core/Scene/CModelNode.h @@ -7,7 +7,7 @@ class CModelNode : public CSceneNode { TResPtr 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;