mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11355] Use ArenaType enum instead raw values
* Drop duplicate ArenaTeamTypes * Use enum type where appropriate * More strict check integrity arena team data at loading.
This commit is contained in:
parent
6f8aa617d0
commit
adcb84a325
12 changed files with 114 additions and 88 deletions
|
|
@ -6697,7 +6697,7 @@ uint32 Player::GetRankFromDB(ObjectGuid guid)
|
|||
return 0;
|
||||
}
|
||||
|
||||
uint32 Player::GetArenaTeamIdFromDB(ObjectGuid guid, uint8 type)
|
||||
uint32 Player::GetArenaTeamIdFromDB(ObjectGuid guid, ArenaType type)
|
||||
{
|
||||
QueryResult *result = CharacterDatabase.PQuery("SELECT arena_team_member.arenateamid FROM arena_team_member JOIN arena_team ON arena_team_member.arenateamid = arena_team.arenateamid WHERE guid='%u' AND type='%u' LIMIT 1", guid.GetCounter(), type);
|
||||
if (!result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue