mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9342] Fixed group creating :(
Also prevent not read tail packet spam in soem cases in group handlers.
This commit is contained in:
parent
c49771337c
commit
c2f8d39920
4 changed files with 51 additions and 42 deletions
|
|
@ -5600,7 +5600,17 @@ void ObjectMgr::PackGroupIds()
|
|||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
groupIds.insert(fields[0].GetUInt32());
|
||||
|
||||
uint32 id = fields[0].GetUInt32();
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
CharacterDatabase.PExecute("DELETE FROM groups WHERE groupId = '%u'", id);
|
||||
CharacterDatabase.PExecute("DELETE FROM group_member WHERE groupId = '%u'", id);
|
||||
continue;
|
||||
}
|
||||
|
||||
groupIds.insert(id);
|
||||
}
|
||||
while (result->NextRow());
|
||||
delete result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue