CGameOptions: Mark GameOptionsRegistry as constexpr

Same behavior but eliminates potential runtime initializers.
This commit is contained in:
Lioncash 2020-04-12 05:27:41 -04:00
parent d5e57b5348
commit 3c9fef492a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ constexpr std::array<SGameOption, 4> ControllerOpts{{
{EGameOption::RestoreDefaults, 35, 0.f, 1.f, 1.f, EOptionType::RestoreDefaults},
}};
const std::array<std::pair<size_t, const SGameOption*>, 5> GameOptionsRegistry{{
constexpr std::array<std::pair<size_t, const SGameOption*>, 5> GameOptionsRegistry{{
{VisorOpts.size(), VisorOpts.data()},
{DisplayOpts.size(), DisplayOpts.data()},
{SoundOpts.size(), SoundOpts.data()},