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:
Lioncash 2020-02-03 10:14:15 -05:00
parent cbf7140d21
commit 855841607b
1 changed files with 3 additions and 1 deletions

View File

@ -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,