mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 08:23:52 +00:00
fix(combatlog): reset spell go parser output before decode
This commit is contained in:
parent
debc47b5cc
commit
3dba13bbd2
3 changed files with 9 additions and 0 deletions
|
|
@ -396,6 +396,9 @@ bool ClassicPacketParsers::parseSpellStart(network::Packet& packet, SpellStartDa
|
|||
// + uint8(missCount) + [PackedGuid(missTarget) + uint8(missType)] × missCount
|
||||
// ============================================================================
|
||||
bool ClassicPacketParsers::parseSpellGo(network::Packet& packet, SpellGoData& data) {
|
||||
// Always reset output to avoid stale targets when callers reuse buffers.
|
||||
data = SpellGoData{};
|
||||
|
||||
auto rem = [&]() { return packet.getSize() - packet.getReadPos(); };
|
||||
const size_t startPos = packet.getReadPos();
|
||||
if (rem() < 2) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue