Core/Guilds: Fixed a possible crash on guild invite.

Closes #8699
This commit is contained in:
Warpten committed 2013-01-01 22:27:26 +01:00
1 parent 312e8509dd
commit 2fa3972707
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2650,7 +2650,7 @@ bool Guild::AddMember(uint64 guid, uint8 rankId)
_UpdateAccountsNumber();
_LogEvent(GUILD_EVENT_LOG_JOIN_GUILD, lowguid);
_BroadcastEvent(GE_JOINED, guid, name.c_str());
sGuildFinderMgr->RemoveMembershipRequest(player->GetGUIDLow(), GUID_LOPART(this->GetGUID()));
sGuildFinderMgr->RemoveMembershipRequest(lowguid, GUID_LOPART(GetGUID()));
// Call scripts if member was succesfully added (and stored to database)
sScriptMgr->OnGuildAddMember(this, player, rankId);