CPauseScreenBase: Mark colors as constexpr within UpdateSideTable()

Same behavior, but allows eliding construction at runtime.
This commit is contained in:
Lioncash 2020-03-15 21:16:11 -04:00
parent f7fdbc07ba
commit 6e921e3258
1 changed files with 4 additions and 3 deletions

View File

@ -252,11 +252,12 @@ void CPauseScreenBase::ChangeMode(EMode mode, bool playSfx) {
}
void CPauseScreenBase::UpdateSideTable(CGuiTableGroup* table) {
if (!table)
if (!table) {
return;
}
zeus::CColor selColor = zeus::skWhite;
zeus::CColor deselColor = {1.f, 1.f, 1.f, 0.5f};
constexpr zeus::CColor selColor = zeus::skWhite;
constexpr zeus::CColor deselColor = {1.f, 1.f, 1.f, 0.5f};
bool tableActive = true;
if (table == x84_tablegroup_rightlog && x10_mode != EMode::RightTable)