From 4d1fe71944f11ff94328e8f711ece3c07a1fb433 Mon Sep 17 00:00:00 2001 From: Nikita Zyuzin Date: Sun, 14 Jun 2015 19:20:40 +0400 Subject: [PATCH] Fix #216 Fixes crash when statboard is shown immediately after joining a server --- src/game/client/components/statboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/statboard.cpp b/src/game/client/components/statboard.cpp index 9f48da6ab..9f12f47ed 100644 --- a/src/game/client/components/statboard.cpp +++ b/src/game/client/components/statboard.cpp @@ -153,7 +153,7 @@ void CStatboard::RenderGlobalStats() } // sort blue players by score after - if(m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS) + if(m_pClient->m_Snap.m_pGameInfoObj && m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags&GAMEFLAG_TEAMS) { for(int i = 0; i < MAX_CLIENTS; i++) {