diff options
author | Subv <subv2112@gmail.com> | 2014-06-20 14:56:19 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-06-20 14:56:19 -0500 |
commit | 42f3c9cf5b32cdd6e00675c34584b679d27d353e (patch) | |
tree | aafc3988845b05b6058227ccae95ec14fae180db /src/server/game/Guilds/Guild.cpp | |
parent | 556dd6b2dbf4fe96983fcc91e91dc09791ad1d26 (diff) |
Core/Guilds: Use the right opcode in Guild::SendCommandResult.
Documented the change a little.
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
-rw-r--r-- | src/server/game/Guilds/Guild.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index 5fb10feccf0..2c6e2253494 100644 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -99,7 +99,10 @@ inline uint32 _GetGuildBankTabPrice(uint8 tabId) void Guild::SendCommandResult(WorldSession* session, GuildCommandType type, GuildCommandError errCode, std::string const& param) { - WorldPacket data(SMSG_GUILD_COMMAND_RESULT, 8 + param.size() + 1); + // Note: SMSG_GUILD_COMMAND_RESULT and SMSG_GUILD_COMMAND_RESULT_2 do exactly the same in the client, they just have different structures. + // There's no particular reason why we use SMSG_GUILD_COMMAND_RESULT_2, this one is processed inmediately as it is read from the client. + // SMSG_GUILD_COMMAND_RESULT is a JAM opcode + WorldPacket data(SMSG_GUILD_COMMAND_RESULT_2, 8 + param.size() + 1); data << uint32(type); data << param; data << uint32(errCode); |