Fix a crash I found.

This commit is contained in:
EliteMasterEric 2024-03-28 21:40:16 -04:00
parent 86c91d1e82
commit 8020624366

View file

@ -158,11 +158,19 @@ class VoicesGroup extends SoundGroup
}
public override function destroy():Void
{
if (playerVoices != null)
{
playerVoices.destroy();
playerVoices = null;
}
if (opponentVoices != null)
{
opponentVoices.destroy();
opponentVoices = null;
}
super.destroy();
}
}