mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
fix(combatlog): reset spell go parser output before decode
This commit is contained in:
parent
6b290009aa
commit
f0ba85fa80
3 changed files with 9 additions and 0 deletions
|
|
@ -3725,6 +3725,9 @@ bool SpellStartParser::parse(network::Packet& packet, SpellStartData& data) {
|
|||
}
|
||||
|
||||
bool SpellGoParser::parse(network::Packet& packet, SpellGoData& data) {
|
||||
// Always reset output to avoid stale targets when callers reuse buffers.
|
||||
data = SpellGoData{};
|
||||
|
||||
// Packed GUIDs are variable-length, so only require the smallest possible
|
||||
// shape up front: 2 GUID masks + fixed fields through missCount.
|
||||
if (packet.getSize() - packet.getReadPos() < 17) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue