From 3c9fef492a683b52f56c3b45473140782a278ac1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 12 Apr 2020 05:27:41 -0400 Subject: [PATCH] CGameOptions: Mark GameOptionsRegistry as constexpr Same behavior but eliminates potential runtime initializers. --- Runtime/CGameOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CGameOptions.cpp b/Runtime/CGameOptions.cpp index 4b2b8e4ee..5ea76beb3 100644 --- a/Runtime/CGameOptions.cpp +++ b/Runtime/CGameOptions.cpp @@ -49,7 +49,7 @@ constexpr std::array ControllerOpts{{ {EGameOption::RestoreDefaults, 35, 0.f, 1.f, 1.f, EOptionType::RestoreDefaults}, }}; -const std::array, 5> GameOptionsRegistry{{ +constexpr std::array, 5> GameOptionsRegistry{{ {VisorOpts.size(), VisorOpts.data()}, {DisplayOpts.size(), DisplayOpts.data()}, {SoundOpts.size(), SoundOpts.data()},