From 0a665030266bf2cd1eb8404a9f4bb275c4a51b39 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 19 Jun 2020 20:31:06 -0400 Subject: [PATCH] CScriptNode: Initialize all class variables Provides a consistent initial state. --- src/Core/Scene/CScriptNode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Scene/CScriptNode.h b/src/Core/Scene/CScriptNode.h index a6e549df..43c99dc1 100644 --- a/src/Core/Scene/CScriptNode.h +++ b/src/Core/Scene/CScriptNode.h @@ -16,8 +16,8 @@ class CScriptNode : public CSceneNode CScriptExtra *mpExtra = nullptr; TResPtr mpDisplayAsset; - uint32 mCharIndex; - uint32 mAnimIndex; + uint32 mCharIndex = 0; + uint32 mAnimIndex = 0; CCollisionNode *mpCollisionNode; std::vector mAttachments;