used Teams() instead of ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams

This commit is contained in:
GreYFoX 2011-07-22 00:01:12 +02:00
parent 3d07ffdbdd
commit b0420e66ee

View file

@ -954,7 +954,7 @@ bool CCharacter::SameTeam(int ClientID)
int CCharacter::Team() 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() CGameTeams* CCharacter::Teams()