mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed a possible client crash on map change
This commit is contained in:
parent
c27a634089
commit
f38fc81d78
|
@ -1660,7 +1660,7 @@ void CClient::Update()
|
||||||
Disconnect();
|
Disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(State() != IClient::STATE_OFFLINE && m_RecivedSnapshots >= 3)
|
else if(State() == IClient::STATE_ONLINE && m_RecivedSnapshots >= 3)
|
||||||
{
|
{
|
||||||
// switch snapshot
|
// switch snapshot
|
||||||
int Repredict = 0;
|
int Repredict = 0;
|
||||||
|
|
Loading…
Reference in a new issue