From 3d4f2d60eb12206b2f736f4c4acb5aef995f12ab Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 9 Jun 2020 22:57:42 -0400 Subject: [PATCH] CSceneNode: Make use of std::array Same behavior, stronger typing. --- src/Core/Scene/CSceneNode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Scene/CSceneNode.h b/src/Core/Scene/CSceneNode.h index 1aa487e6..eae48c65 100644 --- a/src/Core/Scene/CSceneNode.h +++ b/src/Core/Scene/CSceneNode.h @@ -15,6 +15,7 @@ #include #include #include +#include class CRenderer; class CScene; @@ -97,7 +98,7 @@ protected: uint32 mLightLayerIndex = 0; uint32 mLightCount = 0; - CLight* mLights[8]; + std::array mLights{}; CColor mAmbientColor; public: