From dab6a3b5200647dcd6801a0701e78fa95e826b07 Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Sun, 19 Jan 2025 22:04:03 +0100 Subject: [PATCH] Small crash fix --- source/funkin/backend/assets/Paths.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/funkin/backend/assets/Paths.hx b/source/funkin/backend/assets/Paths.hx index 39783823..9486aed6 100644 --- a/source/funkin/backend/assets/Paths.hx +++ b/source/funkin/backend/assets/Paths.hx @@ -209,10 +209,10 @@ class Paths * @param SkipAtlasCheck Whenever the atlas check should be skipped. * @return FlxFramesCollection Frames */ - static function loadFrames(path:String, Unique:Bool = false, Key:String = null, SkipAtlasCheck:Bool = false):FlxFramesCollection { + static function loadFrames(path:String, Unique:Bool = false, Key:String = null, SkipAtlasCheck:Bool = false, SkipMultiCheck:Bool = false):FlxFramesCollection { var noExt = Path.withoutExtension(path); - if (Assets.exists('$noExt/1.png')) { + if (!SkipMultiCheck && Assets.exists('$noExt/1.png')) { // MULTIPLE SPRITESHEETS!! var graphic = FlxG.bitmap.add("flixel/images/logo/default.png", false, '$noExt/mult'); @@ -224,7 +224,7 @@ class Paths var cur = 1; var finalFrames = new MultiFramesCollection(graphic); while(Assets.exists('$noExt/$cur.png')) { - var spr = loadFrames('$noExt/$cur.png'); + var spr = loadFrames('$noExt/$cur.png', false, null, false, true); finalFrames.addFrames(spr); cur++; }