From 77fe95487bbfa7c0564b51a593888e13d59b7d31 Mon Sep 17 00:00:00 2001 From: Foe Date: Fri, 21 Jun 2024 00:09:00 +0200 Subject: [PATCH] Restore PlayMusic functionality Sending MusicId 0 will stop playing previously started music --- methods/TrinityCore/WorldObjectMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods/TrinityCore/WorldObjectMethods.h b/methods/TrinityCore/WorldObjectMethods.h index cd51d1176d..497064c742 100644 --- a/methods/TrinityCore/WorldObjectMethods.h +++ b/methods/TrinityCore/WorldObjectMethods.h @@ -1067,7 +1067,7 @@ namespace LuaWorldObject Player* player = E->CHECKOBJ(3, false); if (!sSoundEntriesStore.LookupEntry(musicid)) - return 0; + musicid = 0; WorldPackets::Misc::PlayMusic playMusic(musicid); const WorldPacket* data = playMusic.Write();