Fix for another reported crash

This commit is contained in:
EliteMasterEric 2024-04-30 23:59:25 -04:00
parent 079b1f327a
commit 9ffbc8479c
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ class FunkinSprite extends FlxSprite
for (graphicKey in previousCachedTextures.keys())
{
var graphic = previousCachedTextures.get(graphicKey);
if (graphic == null) continue;
FlxG.bitmap.remove(graphic);
graphic.destroy();
previousCachedTextures.remove(graphicKey);