mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 18:18:18 +00:00
used Teams() instead of ((CGameControllerDDRace*)GameServer()->m_pController)->m_Teams
This commit is contained in:
parent
3d07ffdbdd
commit
b0420e66ee
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue