Fix null pointer

This commit is contained in:
def 2014-01-10 12:01:13 +01:00
parent ba9a29c704
commit d437c57d26

View file

@ -1010,7 +1010,7 @@ void CClient::ProcessConnlessPacket(CNetChunk *pPacket)
CServerBrowser::CServerEntry *pEntry = m_ServerBrowser.Find(pPacket->m_Address);
// Don't add info if we already got info64
if(pEntry->m_Info.m_MaxClients > VANILLA_MAX_CLIENTS)
if(pEntry && pEntry->m_Info.m_MaxClients > VANILLA_MAX_CLIENTS)
return;
Up.Reset((unsigned char*)pPacket->m_pData+sizeof(SERVERBROWSE_INFO), pPacket->m_DataSize-sizeof(SERVERBROWSE_INFO));