mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Don't crash when standing on start line and connecting dummy
This commit is contained in:
parent
6267c84ad8
commit
c4dac1b0cd
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue