*prevent crashes in Player::_LoadArenaTeamInfo(). By DasBlub.
--HG-- branch : trunk
This commit is contained in:
@@ -13717,6 +13717,11 @@ void Player::_LoadArenaTeamInfo(QueryResult *result)
|
|||||||
uint32 personal_rating = fields[3].GetUInt32();
|
uint32 personal_rating = fields[3].GetUInt32();
|
||||||
|
|
||||||
ArenaTeam* aTeam = objmgr.GetArenaTeamById(arenateamid);
|
ArenaTeam* aTeam = objmgr.GetArenaTeamById(arenateamid);
|
||||||
|
if(!aTeam)
|
||||||
|
{
|
||||||
|
sLog.outError("FATAL: couldn't load arenateam %u", arenateamid);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
uint8 arenaSlot = aTeam->GetSlot();
|
uint8 arenaSlot = aTeam->GetSlot();
|
||||||
|
|
||||||
m_uint32Values[PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + arenaSlot * 6] = arenateamid; // TeamID
|
m_uint32Values[PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + arenaSlot * 6] = arenateamid; // TeamID
|
||||||
|
|||||||
Reference in New Issue
Block a user