From c4dac1b0cd5e286027f20b0f2d00c421bd5a60d9 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 5 Jun 2014 16:28:59 +0200 Subject: [PATCH] Fix: Don't crash when standing on start line and connecting dummy --- src/game/client/components/ghost.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/ghost.cpp b/src/game/client/components/ghost.cpp index 75bcd363c..7060c41bc 100644 --- a/src/game/client/components/ghost.cpp +++ b/src/game/client/components/ghost.cpp @@ -274,7 +274,8 @@ void CGhost::StartRecord() m_Recording = true; m_CurGhost.m_Path.clear(); CNetObj_ClientInfo *pInfo = (CNetObj_ClientInfo *) Client()->SnapFindItem(IClient::SNAP_CURRENT, NETOBJTYPE_CLIENTINFO, m_pClient->m_Snap.m_LocalClientID); - m_CurGhost.m_Info = *pInfo; + if (pInfo) + m_CurGhost.m_Info = *pInfo; } void CGhost::StopRecord()