From 9ffbc8479cf67cb6c614cd142b649411100c5e24 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Tue, 30 Apr 2024 23:59:25 -0400 Subject: [PATCH] Fix for another reported crash --- source/funkin/graphics/FunkinSprite.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/funkin/graphics/FunkinSprite.hx b/source/funkin/graphics/FunkinSprite.hx index ffbd63fab..bfd2e8028 100644 --- a/source/funkin/graphics/FunkinSprite.hx +++ b/source/funkin/graphics/FunkinSprite.hx @@ -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);