CParticleElectric: Make use of std::array where applicable

Prevents array to pointer decay.
This commit is contained in:
Lioncash 2020-03-25 03:53:20 -04:00
parent c61bee13db
commit 81dcc0604b
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <array>
#include <list> #include <list>
#include <memory> #include <memory>
#include <optional> #include <optional>
@ -29,8 +30,8 @@ public:
class CLineManager { class CLineManager {
friend class CParticleElectric; friend class CParticleElectric;
std::vector<zeus::CVector3f> x0_verts; std::vector<zeus::CVector3f> x0_verts;
float x10_widths[3] = {1.f, 2.f, 3.f}; std::array<float, 3> x10_widths = {1.f, 2.f, 3.f};
zeus::CColor x1c_colors[3]; std::array<zeus::CColor, 3> x1c_colors;
zeus::CAABox x28_aabb = zeus::CAABox(); zeus::CAABox x28_aabb = zeus::CAABox();
}; };