mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
game: fix Classic parseQuestDetails missing rewardXp field
Vanilla 1.12 SMSG_QUESTGIVER_QUEST_DETAILS includes rewardXp (uint32) after rewardMoney, same as WotLK. Without this read the XP reward was always 0 in the quest accept dialog for Classic.
This commit is contained in:
parent
5c830216be
commit
3bee0882cc
1 changed files with 3 additions and 0 deletions
|
|
@ -1616,6 +1616,9 @@ bool ClassicPacketParsers::parseQuestDetails(network::Packet& packet, QuestDetai
|
|||
|
||||
if (packet.getReadPos() + 4 <= packet.getSize())
|
||||
data.rewardMoney = packet.readUInt32();
|
||||
// Vanilla 1.12 includes rewardXp after rewardMoney (same as WotLK)
|
||||
if (packet.getReadPos() + 4 <= packet.getSize())
|
||||
data.rewardXp = packet.readUInt32();
|
||||
|
||||
LOG_INFO("Quest details classic: id=", data.questId, " title='", data.title, "'");
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue