diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-05-18 20:37:18 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-05-18 20:37:18 +0200 |
| commit | 38285968472b85636360cb2648fcb3c00c16f05c (patch) | |
| tree | de9d374a4e4984eb9ce9c95b41b303acec051a04 /src/server/game/Guilds/Guild.cpp | |
| parent | a0bd68cf465517786d16bcb145ed3fc8bc5b5b98 (diff) | |
Core/Packet: Clean up packet creation
Clean up packet creation by removing some unneeded checks to specify the exact packet size to reserve.
It's cheaper and easier to just always specify the max size as it's a matter of a few bytes only anyway.
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
| -rw-r--r-- | src/server/game/Guilds/Guild.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index 4546f01bd67..0427097f30b 100644 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -2943,7 +2943,7 @@ void Guild::_BroadcastEvent(GuildEvents guildEvent, ObjectGuid guid, char const* { uint8 count = !param3 ? (!param2 ? (!param1 ? 0 : 1) : 2) : 3; - WorldPacket data(SMSG_GUILD_EVENT, 1 + 1 + count + (guid ? 8 : 0)); + WorldPacket data(SMSG_GUILD_EVENT, 1 + 1 + count + (8)); data << uint8(guildEvent); data << uint8(count); |
