mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-04 19:28:30 +00:00
Fix a crash I found.
This commit is contained in:
parent
86c91d1e82
commit
8020624366
|
@ -159,10 +159,18 @@ class VoicesGroup extends SoundGroup
|
|||
|
||||
public override function destroy():Void
|
||||
{
|
||||
playerVoices.destroy();
|
||||
playerVoices = null;
|
||||
opponentVoices.destroy();
|
||||
opponentVoices = null;
|
||||
if (playerVoices != null)
|
||||
{
|
||||
playerVoices.destroy();
|
||||
playerVoices = null;
|
||||
}
|
||||
|
||||
if (opponentVoices != null)
|
||||
{
|
||||
opponentVoices.destroy();
|
||||
opponentVoices = null;
|
||||
}
|
||||
|
||||
super.destroy();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue