Core/Groups: Group system cleaning sweep.

This commit is contained in:
leak
2011-02-18 18:35:52 +01:00
parent af0d7e415d
commit 6a64c79d2a
8 changed files with 359 additions and 441 deletions
+2 -2
View File
@@ -1345,14 +1345,14 @@ void LFGMgr::UpdateProposal(uint32 proposalId, const uint64& guid, bool accept)
if (!grp)
{
grp = new Group();
grp->Create(pguid, plr->GetName());
grp->Create(plr);
grp->ConvertToLFG();
uint64 gguid = grp->GetGUID();
SetState(gguid, LFG_STATE_PROPOSAL);
sObjectMgr->AddGroup(grp);
}
else if (group != grp)
grp->AddMember(pguid, plr->GetName());
grp->AddMember(plr);
// Update timers
uint8 role = GetRoles(pguid);