1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix issue with impossible room ready status

This commit is contained in:
nordsoft
2023-09-24 03:15:10 +02:00
parent 455c13164e
commit c73c9d773c

View File

@@ -153,11 +153,11 @@ void Lobby::serverCommand(const ServerCommand & command) try
case JOINED: case JOINED:
case KICKED: case KICKED:
protocolAssert(args.size() == 2); protocolAssert(args.size() == 2);
session = "";
ui->chatWidget->setSession(session);
if(args[1] == username) if(args[1] == username)
{ {
hostModsMap.clear(); hostModsMap.clear();
session = "";
ui->chatWidget->setSession(session);
ui->buttonReady->setText("Ready"); ui->buttonReady->setText("Ready");
ui->optNewGame->setChecked(true); ui->optNewGame->setChecked(true);
session = args[0]; session = args[0];