From f38fc81d7872c5c617690026700d55e9c256a30f Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 7 Apr 2011 18:23:03 +0200 Subject: [PATCH] fixed a possible client crash on map change --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 2141e511a..536d8231f 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;