CBurstFire: Use std::array where applicable

Makes the array type strongly typed and prevents implicit array to
pointer decay.
This commit is contained in:
Lioncash 2019-09-22 09:47:06 -04:00
parent adf9610138
commit 8dcffbb67f
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
#pragma once #pragma once
#include <array>
#include "Runtime/GCNTypes.hpp" #include "Runtime/GCNTypes.hpp"
#include "Runtime/rstl.hpp" #include "Runtime/rstl.hpp"
#include <zeus/CVector3f.hpp> #include <zeus/CVector3f.hpp>
namespace urde { namespace urde {
@ -9,7 +12,7 @@ class CStateManager;
struct SBurst { struct SBurst {
s32 x0_randomSelectionWeight; s32 x0_randomSelectionWeight;
s32 x4_shotAngles[8]; std::array<s32, 8> x4_shotAngles;
float x24_timeToNextShot; float x24_timeToNextShot;
float x28_timeToNextShotVariance; float x28_timeToNextShotVariance;
}; };