From 955b22841ea8fb4310da500ac2fd6bd6bb0e018d Mon Sep 17 00:00:00 2001 From: Kelsi Date: Thu, 12 Mar 2026 01:04:16 -0700 Subject: [PATCH] Wire SMSG_FORCE_ANIM animId to emoteAnimCallback --- src/game/game_handler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index b08bb247..47d1f2ca 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -2209,9 +2209,11 @@ void GameHandler::handlePacket(network::Packet& packet) { case Opcode::SMSG_FORCE_ANIM: { // packed_guid + uint32 animId — force entity to play animation if (packet.getSize() - packet.getReadPos() >= 1) { - (void)UpdateObjectParser::readPackedGuid(packet); + uint64_t animGuid = UpdateObjectParser::readPackedGuid(packet); if (packet.getSize() - packet.getReadPos() >= 4) { - /*uint32_t animId =*/ packet.readUInt32(); + uint32_t animId = packet.readUInt32(); + if (emoteAnimCallback_) + emoteAnimCallback_(animGuid, animId); } } break;