From 866c28fbeca9bc96bb243f137e67f9ea1ee41752 Mon Sep 17 00:00:00 2001 From: Spp Date: Tue, 31 Aug 2010 11:50:07 +0200 Subject: Core/Groups: Fix a crash loading groups from DB Fixes issue 3693 --HG-- branch : trunk --- src/server/game/Globals/ObjectMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3