Fix crashes with radar when object team is -1 (#1529)
only really affects us if we spawn an object via console
This commit is contained in:
parent
40b4e69ae4
commit
06f4c0d2aa
@ -244,6 +244,8 @@ void Draw()
|
||||
ent = ENTITY(i);
|
||||
if (CE_INVALID(ent))
|
||||
continue;
|
||||
if (ent->m_iTeam() == 0)
|
||||
continue;
|
||||
if (!ent->m_bAlivePlayer())
|
||||
continue;
|
||||
if (i == g_IEngine->GetLocalPlayer())
|
||||
|
Reference in New Issue
Block a user