diff options
author | w12x <none@none> | 2008-12-23 10:03:14 +0100 |
---|---|---|
committer | w12x <none@none> | 2008-12-23 10:03:14 +0100 |
commit | 691dd19864afd408ae98d64e1696cbdd4aba4050 (patch) | |
tree | 5307910cd087aa8f8ac8472fdaa193aa2195b39a /src | |
parent | f40479e87fc2d8e83f9f9ddcfb487d4275f02039 (diff) | |
parent | cbe749aa204a8f8ea7ec4592b4380ef5864d70fc (diff) |
Merge heads.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 1f3e4e120f9..d2d2bbafe4e 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -13717,6 +13717,11 @@ void Player::_LoadArenaTeamInfo(QueryResult *result) uint32 personal_rating = fields[3].GetUInt32(); ArenaTeam* aTeam = objmgr.GetArenaTeamById(arenateamid); + if(!aTeam) + { + sLog.outError("FATAL: couldn't load arenateam %u", arenateamid); + continue; + } uint8 arenaSlot = aTeam->GetSlot(); m_uint32Values[PLAYER_FIELD_ARENA_TEAM_INFO_1_1 + arenaSlot * 6] = arenateamid; // TeamID |