From f38fc81d7872c5c617690026700d55e9c256a30f Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 7 Apr 2011 18:23:03 +0200 Subject: fixed a possible client crash on map change --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/engine/client/client.cpp') diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 2141e511..536d8231 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -1660,7 +1660,7 @@ void CClient::Update() Disconnect(); } } - else if(State() != IClient::STATE_OFFLINE && m_RecivedSnapshots >= 3) + else if(State() == IClient::STATE_ONLINE && m_RecivedSnapshots >= 3) { // switch snapshot int Repredict = 0; -- cgit 1.4.1