mirror of https://github.com/AxioDL/metaforce.git
CBloodFlower: Mark sFireEffects as constexpr
Allows the strings to be put into the read-only section of the binary (and makes it explicit that the strings aren't modified). While we're at it we can make use of std::array.
This commit is contained in:
parent
cbf7140d21
commit
855841607b
|
@ -1,5 +1,7 @@
|
|||
#include "Runtime/MP1/World/CBloodFlower.hpp"
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "Runtime/CSimplePool.hpp"
|
||||
#include "Runtime/CStateManager.hpp"
|
||||
#include "Runtime/GameGlobalObjects.hpp"
|
||||
|
@ -73,7 +75,7 @@ void CBloodFlower::UpdateFire(CStateManager& mgr) {
|
|||
++x5d8_effectState;
|
||||
}
|
||||
|
||||
static std::string_view sFireEffects[3] = {
|
||||
constexpr std::array sFireEffects{
|
||||
"Fire1"sv,
|
||||
"Fire2"sv,
|
||||
"Fire3"sv,
|
||||
|
|
Loading…
Reference in New Issue