From a3484facf8838c6c1eb8615c076366f0746635c3 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 17 Aug 2020 03:04:29 -0400 Subject: [PATCH] CFlaahgra: Use std::array in Cover --- Runtime/MP1/World/CFlaahgra.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Runtime/MP1/World/CFlaahgra.cpp b/Runtime/MP1/World/CFlaahgra.cpp index 9809aa247..8514e7231 100644 --- a/Runtime/MP1/World/CFlaahgra.cpp +++ b/Runtime/MP1/World/CFlaahgra.cpp @@ -1178,8 +1178,9 @@ void CFlaahgra::ProjectileAttack(CStateManager& mgr, EStateMsg msg, float) { } } } + void CFlaahgra::Cover(CStateManager& mgr, EStateMsg msg, float) { - static pas::ESeverity severities[2]{pas::ESeverity::Eight, pas::ESeverity::Seven}; + static constexpr std::array severities{pas::ESeverity::Eight, pas::ESeverity::Seven}; if (msg == EStateMsg::Activate) { x77c_ = GetMirrorNearestPlayer(mgr); x568_ = (x77c_ == kInvalidUniqueId ? 4 : 1);