From 7dc9d24e84b94375c1a526f3cd956f4a3c0cd613 Mon Sep 17 00:00:00 2001 From: HackDev <80620538+Hackx2@users.noreply.github.com> Date: Sun, 3 Nov 2024 17:29:20 +0000 Subject: [PATCH] Update SoundEffect.hx --- source/funkin/backend/audio/SoundEffect.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/funkin/backend/audio/SoundEffect.hx b/source/funkin/backend/audio/SoundEffect.hx index 20944b9..0b67c42 100644 --- a/source/funkin/backend/audio/SoundEffect.hx +++ b/source/funkin/backend/audio/SoundEffect.hx @@ -38,5 +38,10 @@ class SoundEffect * After 100 milseconds the auto effect will start. */ new flixel.util.FlxTimer().start(.1, (tmr) -> _sound.play()); + + /** + * Adding the sound to the list. + */ + FlxG.sound.list.add(_sound); } }