From 6ff27c56e8805964c1c8c22d5b37effc3eb6ea9c Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 29 May 2010 11:12:52 +0000 Subject: fixed crash with related to player count --- 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 dbcaa1ed..409d6969 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -881,7 +881,7 @@ void CClient::ProcessPacket(CNetChunk *pPacket) Info.m_MaxPlayers = str_toint(Up.GetString()); // don't add invalid info to the server browser list - if(Info.m_NumPlayers > MAX_CLIENTS || Info.m_MaxPlayers > MAX_CLIENTS) + if(Info.m_NumPlayers < 0 || Info.m_NumPlayers > MAX_CLIENTS || Info.m_MaxPlayers < 0 || Info.m_MaxPlayers > MAX_CLIENTS) return; str_format(Info.m_aAddress, sizeof(Info.m_aAddress), "%d.%d.%d.%d:%d", -- cgit 1.4.1