diff options
author | click <click@gonnamakeyou.com> | 2012-03-29 05:08:32 +0200 |
---|---|---|
committer | click <click@gonnamakeyou.com> | 2012-03-29 05:08:32 +0200 |
commit | c65cabb33c16ce37e380c70ba4496afe5517be2d (patch) | |
tree | 990e583a7de9d8e0dc9091e90037066f3aa45499 | |
parent | be947eed767da7471667daab92a129b7b067596b (diff) |
Core: Fix some type-errors in the Petitionshandler. Fixes #5916.
Also fixes charterhandling for arenateams, mentioned in #5907.
-rwxr-xr-x | src/server/game/Handlers/PetitionsHandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Handlers/PetitionsHandler.cpp b/src/server/game/Handlers/PetitionsHandler.cpp index a6a6637deaf..139fa04cd9c 100755 --- a/src/server/game/Handlers/PetitionsHandler.cpp +++ b/src/server/game/Handlers/PetitionsHandler.cpp @@ -340,7 +340,7 @@ void WorldSession::SendPetitionQueryOpcode(uint64 petitionguid) Field* fields = result->Fetch(); ownerguid = MAKE_NEW_GUID(fields[0].GetUInt32(), 0, HIGHGUID_PLAYER); name = fields[1].GetString(); - type = fields[2].GetUInt32(); + type = fields[2].GetUInt8(); } else { @@ -486,7 +486,7 @@ void WorldSession::HandlePetitionSignOpcode(WorldPacket & recv_data) fields = result->Fetch(); uint64 ownerGuid = MAKE_NEW_GUID(fields[0].GetUInt32(), 0, HIGHGUID_PLAYER); uint8 signs = fields[1].GetUInt8(); - uint32 type = fields[2].GetUInt32(); + uint8 type = fields[2].GetUInt8(); uint32 playerGuid = _player->GetGUIDLow(); if (GUID_LOPART(ownerGuid) == playerGuid) |