Reset available karts and tracks each selection
This commit is contained in:
parent
20a2bc3bbb
commit
fa2a8bccd3
@ -684,6 +684,8 @@ void ClientLobby::startSelection(Event* event)
|
|||||||
const NetworkString& data = event->data();
|
const NetworkString& data = event->data();
|
||||||
const unsigned kart_num = data.getUInt16();
|
const unsigned kart_num = data.getUInt16();
|
||||||
const unsigned track_num = data.getUInt16();
|
const unsigned track_num = data.getUInt16();
|
||||||
|
m_available_karts.clear();
|
||||||
|
m_available_tracks.clear();
|
||||||
for (unsigned i = 0; i < kart_num; i++)
|
for (unsigned i = 0; i < kart_num; i++)
|
||||||
{
|
{
|
||||||
std::string kart;
|
std::string kart;
|
||||||
|
Loading…
Reference in New Issue
Block a user