From f2afd91d0fcf4c4099e0617e6f103fd7142c18df Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 26 Jul 2023 19:02:33 +1000 Subject: Fix Teams not functioning as swapped character --- source/frontend/StarTeamBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/frontend/StarTeamBar.cpp') diff --git a/source/frontend/StarTeamBar.cpp b/source/frontend/StarTeamBar.cpp index a378040..f34961b 100644 --- a/source/frontend/StarTeamBar.cpp +++ b/source/frontend/StarTeamBar.cpp @@ -132,7 +132,7 @@ void TeamBar::updatePlayerResources() { m_energyBar->setColor(m_energyBarColor.mix(m_energyBarRegenMixColor, player->energyRegenBlockPercent())); } - m_nameLabel->setText(m_client->mainPlayer()->name()); + m_nameLabel->setText(player->name()); } void TeamBar::inviteButton() { -- cgit v1.2.3