mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix: Possible crash on map change
This commit is contained in:
parent
ff3b76af61
commit
8ec5aa46c5
|
@ -98,7 +98,10 @@ void CItems::RenderProjectile(const CNetObj_Projectile *pCurrent, int ItemID)
|
||||||
|
|
||||||
IGraphics::CQuadItem QuadItem(Pos.x, Pos.y, 32, 32);
|
IGraphics::CQuadItem QuadItem(Pos.x, Pos.y, 32, 32);
|
||||||
|
|
||||||
bool LocalPlayerInGame = m_pClient->m_aClients[m_pClient->m_Snap.m_pLocalInfo->m_ClientID].m_Team != -1;
|
bool LocalPlayerInGame = false;
|
||||||
|
|
||||||
|
if(m_pClient->m_Snap.m_pLocalInfo)
|
||||||
|
LocalPlayerInGame = m_pClient->m_aClients[m_pClient->m_Snap.m_pLocalInfo->m_ClientID].m_Team != -1;
|
||||||
|
|
||||||
if (g_Config.m_ClAntiPingGrenade && LocalPlayerInGame && !(Client()->State() == IClient::STATE_DEMOPLAYBACK))
|
if (g_Config.m_ClAntiPingGrenade && LocalPlayerInGame && !(Client()->State() == IClient::STATE_DEMOPLAYBACK))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue