mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fixed handling of match server crash
This commit is contained in:
@@ -112,7 +112,7 @@ CLobbyScreen::CLobbyScreen(ESelectionScreen screenType)
|
||||
CLobbyScreen::~CLobbyScreen()
|
||||
{
|
||||
// TODO: For now we always destroy whole lobby when leaving bonus selection screen
|
||||
if(CSH->state == EClientState::LOBBY_CAMPAIGN)
|
||||
if(CSH->getState() == EClientState::LOBBY_CAMPAIGN)
|
||||
CSH->sendClientDisconnecting();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user