1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Merge pull request #2937 from Nordsoft91/lobby

[!] Fix issue with impossible room ready status
This commit is contained in:
Nordsoft91 2023-09-24 23:37:39 +02:00 committed by GitHub
commit 9042778bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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