diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index e6dcc3cb1..0b788efdc 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -130,12 +130,17 @@ ServerLobby::~ServerLobby() void ServerLobby::setup() { LobbyProtocol::setup(); + auto players = m_game_setup->getConnectedPlayers(); if (m_game_setup->isGrandPrix() && !m_game_setup->isGrandPrixStarted()) { - auto players = m_game_setup->getConnectedPlayers(); for (auto player : players) player->resetGrandPrixData(); } + if (!m_game_setup->isGrandPrix() || !m_game_setup->isGrandPrixStarted()) + { + for (auto player : players) + player->setKartName(""); + } StateManager::get()->resetActivePlayers(); // We use maximum 16bit unsigned limit