From 81dcc0604bb0ed9a3e40fe25a1354971769b7cde Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 25 Mar 2020 03:53:20 -0400 Subject: [PATCH] CParticleElectric: Make use of std::array where applicable Prevents array to pointer decay. --- Runtime/Particle/CParticleElectric.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/Particle/CParticleElectric.hpp b/Runtime/Particle/CParticleElectric.hpp index 5ccab1ffb..9bfb94319 100644 --- a/Runtime/Particle/CParticleElectric.hpp +++ b/Runtime/Particle/CParticleElectric.hpp @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include @@ -29,8 +30,8 @@ public: class CLineManager { friend class CParticleElectric; std::vector x0_verts; - float x10_widths[3] = {1.f, 2.f, 3.f}; - zeus::CColor x1c_colors[3]; + std::array x10_widths = {1.f, 2.f, 3.f}; + std::array x1c_colors; zeus::CAABox x28_aabb = zeus::CAABox(); };