1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Restore AI controlled player for client disconnection

This commit is contained in:
nordsoft
2022-10-04 18:11:12 +04:00
parent 0ea5a8fbe7
commit a9ad583158
2 changed files with 3 additions and 4 deletions

View File

@ -348,7 +348,7 @@ void PlayerEndsGame::applyCl(CClient *cl)
void PlayerReinitInterface::applyCl(CClient * cl)
{
auto & plSettings = CSH->si->getIthPlayersSettings(player);
if(!playerConnectionId)
if(playerConnectionId == PlayerSettings::PLAYER_AI)
{
plSettings.connectedPlayerIDs.clear();
cl->initPlayerEnvironments();