1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-11 07:55:01 +00:00

Fix for another reported crash

This commit is contained in:
EliteMasterEric 2024-04-30 23:59:25 -04:00
parent 079b1f327a
commit 9ffbc8479c

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);