Core/Groups: Fix a crash loading groups from DB
Fixes issue 3693 --HG-- branch : trunk
This commit is contained in:
@@ -3645,7 +3645,10 @@ void ObjectMgr::LoadGroups()
|
|||||||
group = GetGroupByGUID(groupLowGuid);
|
group = GetGroupByGUID(groupLowGuid);
|
||||||
// group will never be NULL (we have run consistency sql's before loading)
|
// group will never be NULL (we have run consistency sql's before loading)
|
||||||
}
|
}
|
||||||
|
if (group)
|
||||||
group->LoadMemberFromDB(fields[1].GetUInt32(), fields[2].GetUInt8(), fields[3].GetUInt8());
|
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;
|
++count;
|
||||||
}while (result->NextRow());
|
}while (result->NextRow());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user