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:
braaaap master 2021-08-16 12:11:06 -05:00 committed by GitHub
parent 40b4e69ae4
commit 06f4c0d2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())