Core/Packets: use the correct opcode for GuildCommandResult packet as the JAM opcode has not been used yet according to sniffs and has a different packet structure

This commit is contained in:
Ovahlord
2022-04-04 23:39:18 +02:00
parent 8baf567ce1
commit c7d7eff894
2 changed files with 2 additions and 2 deletions

View File

@@ -402,7 +402,7 @@ void WorldSession::HandleGuildBankActivate(WorldPackets::Guild::GuildBankActivat
if (!go)
return;
Guild* const guild = GetPlayer()->GetGuild();
Guild const* guild = GetPlayer()->GetGuild();
if (!guild)
{
Guild::SendCommandResult(this, GUILD_COMMAND_VIEW_TAB, ERR_GUILD_PLAYER_NOT_IN_GUILD);

View File

@@ -474,7 +474,7 @@ namespace WorldPackets
class GuildCommandResult final : public ServerPacket
{
public:
GuildCommandResult() : ServerPacket(SMSG_GUILD_COMMAND_RESULT, 9) { }
GuildCommandResult() : ServerPacket(SMSG_GUILD_COMMAND_RESULT_2, 9) { }
WorldPacket const* Write() override;