多人世界队伍bug

This commit is contained in:
huangxiaolei
2022-12-11 02:06:09 +08:00
parent 1f43048d4a
commit 7fa4cd7f10
2 changed files with 14 additions and 5 deletions

View File

@@ -105,3 +105,11 @@ func (t *TeamInfo) SetTeamAvatar(teamIndex uint8, avatarIdList []uint32) {
}
team.AvatarIdList = avatarIdList
}
func (t *TeamInfo) GetActiveAvatarId() uint32 {
team := t.GetActiveTeam()
if team == nil {
return 0
}
return team.AvatarIdList[t.CurrAvatarIndex]
}