diff --git a/src/game/Chat/debugcmds.cpp b/src/game/Chat/debugcmds.cpp index 062f6ee07b..362d952a7c 100644 --- a/src/game/Chat/debugcmds.cpp +++ b/src/game/Chat/debugcmds.cpp @@ -391,7 +391,7 @@ bool ChatHandler::HandleDebugSendQuestPartyMsgCommand(char* args) if (!ExtractUInt32(&args, msg)) return false; - m_session->GetPlayer()->SendPushToPartyResponse(m_session->GetPlayer(), msg); + m_session->GetPlayer()->SendPushToPartyResponse(m_session->GetPlayer(), static_cast(msg)); return true; } diff --git a/src/game/Entities/Player.cpp b/src/game/Entities/Player.cpp index 89f2e1cde6..7bfbaea024 100644 --- a/src/game/Entities/Player.cpp +++ b/src/game/Entities/Player.cpp @@ -13840,14 +13840,13 @@ void Player::SendQuestConfirmAccept(const Quest* pQuest, Player* pReceiver) cons } } -void Player::SendPushToPartyResponse(Player* pPlayer, uint32 msg) const +void Player::SendPushToPartyResponse(Player* pPlayer, QuestShareMessages msg) const { if (pPlayer) { - WorldPacket data(MSG_QUEST_PUSH_RESULT, (8 + 4 + 1)); + WorldPacket data(MSG_QUEST_PUSH_RESULT, 8 + 1); data << pPlayer->GetObjectGuid(); - data << uint32(msg); // valid values: 0-8 - data << uint8(0); + data << uint8(msg); GetSession()->SendPacket(data); DEBUG_LOG("WORLD: Sent MSG_QUEST_PUSH_RESULT"); } diff --git a/src/game/Entities/Player.h b/src/game/Entities/Player.h index 04f14833cb..fe00f0007e 100644 --- a/src/game/Entities/Player.h +++ b/src/game/Entities/Player.h @@ -1335,7 +1335,7 @@ class Player : public Unit void SendQuestTimerFailed(uint32 quest_id) const; void SendCanTakeQuestResponse(uint32 msg) const; void SendQuestConfirmAccept(Quest const* pQuest, Player* pReceiver) const; - void SendPushToPartyResponse(Player* pPlayer, uint32 msg) const; + void SendPushToPartyResponse(Player* pPlayer, QuestShareMessages msg) const; void SendQuestUpdateAddItem(Quest const* pQuest, uint32 item_idx, uint32 current, uint32 count); void SendQuestUpdateAddCreatureOrGo(Quest const* pQuest, ObjectGuid guid, uint32 creatureOrGO_idx, uint32 count); diff --git a/src/game/Quests/QuestHandler.cpp b/src/game/Quests/QuestHandler.cpp index b2fecd81df..89a1501431 100644 --- a/src/game/Quests/QuestHandler.cpp +++ b/src/game/Quests/QuestHandler.cpp @@ -611,10 +611,9 @@ void WorldSession::HandleQuestPushResult(WorldPacket& recvPacket) if (Player* pPlayer = ObjectAccessor::FindPlayer(_player->GetDividerGuid())) { - WorldPacket data(MSG_QUEST_PUSH_RESULT, (8 + 4 + 1)); + WorldPacket data(MSG_QUEST_PUSH_RESULT, 8 + 1); data << ObjectGuid(guid); - data << uint32(msg); // valid values: 0-8 - data << uint8(0); + data << uint8(msg); pPlayer->GetSession()->SendPacket(data); _player->ClearDividerGuid(); }