From ea52e25251089eed0edc92ef237b93916919e73d Mon Sep 17 00:00:00 2001 From: swordcube <49110074+swordcube@users.noreply.github.com> Date: Fri, 26 Apr 2024 06:22:10 -0500 Subject: [PATCH] guys we should probably check if frames isn't null First --- source/funkin/backend/assets/Paths.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/backend/assets/Paths.hx b/source/funkin/backend/assets/Paths.hx index 125d4d93..d7567b82 100644 --- a/source/funkin/backend/assets/Paths.hx +++ b/source/funkin/backend/assets/Paths.hx @@ -177,7 +177,7 @@ class Paths public static function getFrames(key:String, assetsPath:Bool = false, ?library:String) { if (tempFramesCache.exists(key)) { var frames = tempFramesCache[key]; - if (frames.parent != null && frames.parent.bitmap != null && frames.parent.bitmap.readable) + if (frames != null && frames.parent != null && frames.parent.bitmap != null && frames.parent.bitmap.readable) return frames; else tempFramesCache.remove(key); @@ -325,4 +325,4 @@ class ScriptPathInfo { this.file = file; this.library = library; } -} \ No newline at end of file +}