diff options
author | Spp <none@none> | 2010-08-31 11:50:07 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-08-31 11:50:07 +0200 |
commit | 866c28fbeca9bc96bb243f137e67f9ea1ee41752 (patch) | |
tree | a119a051671952e56ac69edd84e5db7913f100d1 /src | |
parent | b9e19572c446dc6cbb4a04740db1aae39e670f92 (diff) |
Core/Groups: Fix a crash loading groups from DB
Fixes issue 3693
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index c733c434f9d..0fed45aad13 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -3645,7 +3645,10 @@ void ObjectMgr::LoadGroups() group = GetGroupByGUID(groupLowGuid); // group will never be NULL (we have run consistency sql's before loading) } - group->LoadMemberFromDB(fields[1].GetUInt32(), fields[2].GetUInt8(), fields[3].GetUInt8()); + if (group) + group->LoadMemberFromDB(fields[1].GetUInt32(), fields[2].GetUInt8(), fields[3].GetUInt8()); + else + sLog.outError("ObjectMgr::LoadGroups: Consistency failed, can't find group (lowguid %u)", groupLowGuid); ++count; }while (result->NextRow()); |