Skip to content

Commit

Permalink
Restore PlayMusic functionality
Browse files Browse the repository at this point in the history
Sending MusicId 0 will stop playing previously started music
  • Loading branch information
Foereaper authored Jun 20, 2024
1 parent 3048c8b commit 77fe954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods/TrinityCore/WorldObjectMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ namespace LuaWorldObject
Player* player = E->CHECKOBJ<Player>(3, false);

if (!sSoundEntriesStore.LookupEntry(musicid))
return 0;
musicid = 0;

WorldPackets::Misc::PlayMusic playMusic(musicid);
const WorldPacket* data = playMusic.Write();
Expand Down

0 comments on commit 77fe954

Please sign in to comment.