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:
Kelsi 2026-03-10 04:20:13 -07:00
parent 5c830216be
commit 3bee0882cc

View file

@ -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;