mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
fix(combatlog): reject truncated instakill logs without spell id
This commit is contained in:
parent
c7dffccb4e
commit
f930ecbffd
1 changed files with 4 additions and 1 deletions
|
|
@ -6527,7 +6527,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
}
|
}
|
||||||
uint64_t ikVictim = ikUsesFullGuid
|
uint64_t ikVictim = ikUsesFullGuid
|
||||||
? packet.readUInt64() : UpdateObjectParser::readPackedGuid(packet);
|
? packet.readUInt64() : UpdateObjectParser::readPackedGuid(packet);
|
||||||
uint32_t ikSpell = (ik_rem() >= 4) ? packet.readUInt32() : 0;
|
if (ik_rem() < 4) {
|
||||||
|
packet.setReadPos(packet.getSize()); break;
|
||||||
|
}
|
||||||
|
uint32_t ikSpell = packet.readUInt32();
|
||||||
// Show kill/death feedback for the local player
|
// Show kill/death feedback for the local player
|
||||||
if (ikCaster == playerGuid) {
|
if (ikCaster == playerGuid) {
|
||||||
addCombatText(CombatTextEntry::INSTAKILL, 0, ikSpell, true, 0, ikCaster, ikVictim);
|
addCombatText(CombatTextEntry::INSTAKILL, 0, ikSpell, true, 0, ikCaster, ikVictim);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue