瀏覽代碼

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