mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-06-06 15:53:28 +00:00
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 "Runtime/MP1/World/CBloodFlower.hpp"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
|
||||||
#include "Runtime/CSimplePool.hpp"
|
#include "Runtime/CSimplePool.hpp"
|
||||||
#include "Runtime/CStateManager.hpp"
|
#include "Runtime/CStateManager.hpp"
|
||||||
#include "Runtime/GameGlobalObjects.hpp"
|
#include "Runtime/GameGlobalObjects.hpp"
|
||||||
@ -73,7 +75,7 @@ void CBloodFlower::UpdateFire(CStateManager& mgr) {
|
|||||||
++x5d8_effectState;
|
++x5d8_effectState;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string_view sFireEffects[3] = {
|
constexpr std::array sFireEffects{
|
||||||
"Fire1"sv,
|
"Fire1"sv,
|
||||||
"Fire2"sv,
|
"Fire2"sv,
|
||||||
"Fire3"sv,
|
"Fire3"sv,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user