mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Guilds: Fix crash on kicking offline player of a guild.
This commit is contained in:
@@ -814,7 +814,7 @@ class GuildScript : public ScriptObject
|
||||
virtual void OnAddMember(Guild* /*guild*/, Player* /*player*/, uint8& /*plRank*/) { }
|
||||
|
||||
// Called when a member is removed from the guild.
|
||||
virtual void OnRemoveMember(Guild* /*guild*/, Player* /*player*/, bool /*isDisbanding*/, bool /*isKicked*/) { }
|
||||
virtual void OnRemoveMember(Guild* /*guild*/, ObjectGuid /*guid*/, bool /*isDisbanding*/, bool /*isKicked*/) { }
|
||||
|
||||
// Called when the guild MOTD (message of the day) changes.
|
||||
virtual void OnMOTDChanged(Guild* /*guild*/, const std::string& /*newMotd*/) { }
|
||||
@@ -1101,7 +1101,7 @@ class ScriptMgr
|
||||
public: /* GuildScript */
|
||||
|
||||
void OnGuildAddMember(Guild* guild, Player* player, uint8& plRank);
|
||||
void OnGuildRemoveMember(Guild* guild, Player* player, bool isDisbanding, bool isKicked);
|
||||
void OnGuildRemoveMember(Guild* guild, ObjectGuid guid, bool isDisbanding, bool isKicked);
|
||||
void OnGuildMOTDChanged(Guild* guild, const std::string& newMotd);
|
||||
void OnGuildInfoChanged(Guild* guild, const std::string& newInfo);
|
||||
void OnGuildCreate(Guild* guild, Player* leader, const std::string& name);
|
||||
|
||||
Reference in New Issue
Block a user