Преглед изворни кода

Merge pull request #2937 from Nordsoft91/lobby

[!] Fix issue with impossible room ready status
Nordsoft91 пре 2 година
родитељ
комит
9042778bcb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      launcher/lobby/lobby_moc.cpp

+ 2 - 2
launcher/lobby/lobby_moc.cpp

@@ -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];