Core/Guilds: Fixed one mistake in CMSG_GUILD_SET_GUILD_MASTER's handling, thanks to @Shauren for pointing it out.

This commit is contained in:
Warpten committed 2012-12-01 14:00:08 +01:00
1 parent c33e366eff
commit fc6c93d0c4
1 file changed
+3 -2
+3 -2
View File
@@ -816,8 +816,9 @@ void WorldSession::HandleGuildNewsUpdateStickyOpcode(WorldPacket& recvPacket)
void WorldSession::HandleGuildSetGuildMaster(WorldPacket& recvPacket)
{
uint8 nameLength;
recvPacket >> nameLength;
uint8 nameLength = recvPacket.ReadBits(7);
// This is related to guild master inactivity.
/*bool isDethrone = */recvPacket.ReadBit();
std::string playerName = recvPacket.ReadString(nameLength);
if (Guild* guild = GetPlayer()->GetGuild())
guild->HandleSetNewGuildMaster(this, playerName);