From 67786721ffb192c15c0678d5859e1d3b44cb2c60 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 13 Apr 2020 14:59:44 -0400 Subject: [PATCH] CHudBossEnergyInterface: Make use of structured bindings in constructor Same behavior, minus a verbose type name. --- Runtime/GuiSys/CHudBossEnergyInterface.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Runtime/GuiSys/CHudBossEnergyInterface.cpp b/Runtime/GuiSys/CHudBossEnergyInterface.cpp index b66374957..3532223d1 100644 --- a/Runtime/GuiSys/CHudBossEnergyInterface.cpp +++ b/Runtime/GuiSys/CHudBossEnergyInterface.cpp @@ -15,10 +15,11 @@ CHudBossEnergyInterface::CHudBossEnergyInterface(CGuiFrame& selHud) { x18_energybart01_bossbar->SetCoordFunc(BossEnergyCoordFunc); x18_energybart01_bossbar->SetTesselation(0.2f); - ITweakGuiColors::VisorEnergyBarColors barColors = g_tweakGuiColors->GetVisorEnergyBarColors(0); - x18_energybart01_bossbar->SetFilledColor(barColors.filled); - x18_energybart01_bossbar->SetShadowColor(barColors.shadow); - x18_energybart01_bossbar->SetEmptyColor(barColors.empty); + + const auto& [filled, empty, shadow] = g_tweakGuiColors->GetVisorEnergyBarColors(0); + x18_energybart01_bossbar->SetFilledColor(filled); + x18_energybart01_bossbar->SetShadowColor(shadow); + x18_energybart01_bossbar->SetEmptyColor(empty); } void CHudBossEnergyInterface::Update(float dt) {