mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-27 01:55:52 -05:00
Fix a crash I found.
This commit is contained in:
parent
86c91d1e82
commit
8020624366
1 changed files with 12 additions and 4 deletions
|
@ -159,10 +159,18 @@ class VoicesGroup extends SoundGroup
|
||||||
|
|
||||||
public override function destroy():Void
|
public override function destroy():Void
|
||||||
{
|
{
|
||||||
playerVoices.destroy();
|
if (playerVoices != null)
|
||||||
playerVoices = null;
|
{
|
||||||
opponentVoices.destroy();
|
playerVoices.destroy();
|
||||||
opponentVoices = null;
|
playerVoices = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (opponentVoices != null)
|
||||||
|
{
|
||||||
|
opponentVoices.destroy();
|
||||||
|
opponentVoices = null;
|
||||||
|
}
|
||||||
|
|
||||||
super.destroy();
|
super.destroy();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue