CGunWeapon: Mark skShootAnim as constexpr

Enforce it as constexpr. The initializer is likely optimized away
anyways, given the array only contains primitives, but this is more
consistent.
This commit is contained in:
Lioncash 2020-04-12 11:31:25 -04:00
parent 96e3eaf726
commit b631b5f3a1
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ void CGunWeapon::UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr,
} }
} }
const std::array<s32, 2> CGunWeapon::skShootAnim{4, 3}; constexpr std::array<s32, 2> CGunWeapon::skShootAnim{4, 3};
void CGunWeapon::Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf, void CGunWeapon::Fire(bool underwater, float dt, EChargeState chargeState, const zeus::CTransform& xf,
CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1, float chargeFactor2) { CStateManager& mgr, TUniqueId homingTarget, float chargeFactor1, float chargeFactor2) {