diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp index 4c6dffdf0..515e1be31 100644 --- a/src/game/server/entities/character.cpp +++ b/src/game/server/entities/character.cpp @@ -954,7 +954,7 @@ bool CCharacter::SameTeam(int ClientID) int CCharacter::Team() { - return ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams.m_Core.Team(m_pPlayer->GetCID()); + return Teams()->m_Core.Team(m_pPlayer->GetCID()); } CGameTeams* CCharacter::Teams()