Skip to content

Commit dab6a3b

Browse files
committed
Small crash fix
1 parent 1facc82 commit dab6a3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/funkin/backend/assets/Paths.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ class Paths
209209
* @param SkipAtlasCheck Whenever the atlas check should be skipped.
210210
* @return FlxFramesCollection Frames
211211
*/
212-
static function loadFrames(path:String, Unique:Bool = false, Key:String = null, SkipAtlasCheck:Bool = false):FlxFramesCollection {
212+
static function loadFrames(path:String, Unique:Bool = false, Key:String = null, SkipAtlasCheck:Bool = false, SkipMultiCheck:Bool = false):FlxFramesCollection {
213213
var noExt = Path.withoutExtension(path);
214214

215-
if (Assets.exists('$noExt/1.png')) {
215+
if (!SkipMultiCheck && Assets.exists('$noExt/1.png')) {
216216
// MULTIPLE SPRITESHEETS!!
217217

218218
var graphic = FlxG.bitmap.add("flixel/images/logo/default.png", false, '$noExt/mult');
@@ -224,7 +224,7 @@ class Paths
224224
var cur = 1;
225225
var finalFrames = new MultiFramesCollection(graphic);
226226
while(Assets.exists('$noExt/$cur.png')) {
227-
var spr = loadFrames('$noExt/$cur.png');
227+
var spr = loadFrames('$noExt/$cur.png', false, null, false, true);
228228
finalFrames.addFrames(spr);
229229
cur++;
230230
}

0 commit comments

Comments
 (0)