mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-26 14:16:00 +00:00
Fix for another reported crash
This commit is contained in:
parent
079b1f327a
commit
9ffbc8479c
|
|
@ -214,6 +214,7 @@ class FunkinSprite extends FlxSprite
|
||||||
for (graphicKey in previousCachedTextures.keys())
|
for (graphicKey in previousCachedTextures.keys())
|
||||||
{
|
{
|
||||||
var graphic = previousCachedTextures.get(graphicKey);
|
var graphic = previousCachedTextures.get(graphicKey);
|
||||||
|
if (graphic == null) continue;
|
||||||
FlxG.bitmap.remove(graphic);
|
FlxG.bitmap.remove(graphic);
|
||||||
graphic.destroy();
|
graphic.destroy();
|
||||||
previousCachedTextures.remove(graphicKey);
|
previousCachedTextures.remove(graphicKey);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue