sorry 😭

This commit is contained in:
Til Tjardes 2025-03-22 20:36:57 -06:00
parent b9c49c4f93
commit 6a016a2c60
No known key found for this signature in database
GPG key ID: 992937305C83FA86

View file

@ -377,7 +377,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
music.future.onComplete(function(partialMusic:Null<FunkinSound>) {
FlxG.sound.music = partialMusic;
FlxG.sound.list.remove(FlxG.sound.music);
pool.remove(FlxG.sound.music);
pool.remove(cast FlxG.sound.music);
if (FlxG.sound.music != null && params.onLoad != null) params.onLoad();
});
@ -398,7 +398,7 @@ class FunkinSound extends FlxSound implements ICloneable<FunkinSound>
// Prevent repeat update() and onFocus() calls.
FlxG.sound.list.remove(FlxG.sound.music);
pool.remove(FlxG.sound.music);
pool.remove(cast FlxG.sound.music);
if (FlxG.sound.music != null && params.onLoad != null) params.onLoad();