diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 1dcb3414c..6f796fdef 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -2322,7 +2322,9 @@ bool CGameClient::IsOtherTeam(int ClientID) { bool Local = m_Snap.m_LocalClientID == ClientID; - if((m_aClients[m_Snap.m_LocalClientID].m_Team == TEAM_SPECTATORS && m_Snap.m_SpecInfo.m_SpectatorID == SPEC_FREEVIEW) || ClientID < 0) + if(m_Snap.m_LocalClientID < 0) + return false; + else if((m_aClients[m_Snap.m_LocalClientID].m_Team == TEAM_SPECTATORS && m_Snap.m_SpecInfo.m_SpectatorID == SPEC_FREEVIEW) || ClientID < 0) return false; else if(m_Snap.m_SpecInfo.m_Active && m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW) return m_Teams.Team(ClientID) != m_Teams.Team(m_Snap.m_SpecInfo.m_SpectatorID);