diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index fe3f9ceaf..c749deeaf 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -573,10 +573,14 @@ void ServerLobby::asynchronousUpdate() std::shared_ptr& player = players[i]; std::shared_ptr peer = player->getPeer(); if (peer) - { peer->clearAvailableKartIDs(); + } + for (unsigned i = 0; i < players.size(); i++) + { + std::shared_ptr& player = players[i]; + std::shared_ptr peer = player->getPeer(); + if (peer) peer->addAvailableKartID(i); - } } float real_players_count = (float)players.size(); getHitCaptureLimit(real_players_count);