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:
parent
ee976d676d
commit
d8b601e759
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user