From 5ce9e98b15543cbec4189892f1d2ab163882bda4 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 2 May 2024 00:32:40 -0400 Subject: [PATCH] Add an error handler to DebugBoundingState. --- source/funkin/ui/debug/anim/DebugBoundingState.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/funkin/ui/debug/anim/DebugBoundingState.hx b/source/funkin/ui/debug/anim/DebugBoundingState.hx index 1aa5d6e12..04784a5b7 100644 --- a/source/funkin/ui/debug/anim/DebugBoundingState.hx +++ b/source/funkin/ui/debug/anim/DebugBoundingState.hx @@ -532,6 +532,11 @@ class DebugBoundingState extends FlxState // swagChar.debugMode = true; offsetView.add(swagChar); + if (swagChar == null || swagChar.frames == null) + { + trace('ERROR: Failed to load character ${char}!'); + } + generateOutlines(swagChar.frames.frames); bf.pixels = swagChar.pixels;