diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 706e8cb7..6eab2fb5 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -4507,6 +4507,11 @@ void GameHandler::handlePacket(network::Packet& packet) { // ---- Play object/spell sounds ---- case Opcode::SMSG_PLAY_OBJECT_SOUND: case Opcode::SMSG_PLAY_SPELL_IMPACT: + if (packet.getSize() - packet.getReadPos() >= 4) { + uint32_t soundId = packet.readUInt32(); + LOG_DEBUG("SMSG_PLAY_OBJECT_SOUND/SPELL_IMPACT id=", soundId); + if (playSoundCallback_) playSoundCallback_(soundId); + } packet.setReadPos(packet.getSize()); break;