1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix crash on disconnecting

This commit is contained in:
Ivan Savenko 2023-12-21 16:39:47 +02:00
parent ee976d676d
commit d8b601e759

View File

@ -47,7 +47,7 @@ void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyClientConnected(LobbyClientCon
void ApplyOnLobbyHandlerNetPackVisitor::visitLobbyClientDisconnected(LobbyClientDisconnected & pack)
{
if(pack.clientId != pack.c->connectionID)
if(pack.clientId != handler.c->connectionID)
{
result = false;
return;