mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-03 20:23:46 +00:00
Add an error handler to DebugBoundingState.
This commit is contained in:
parent
4e0c7cea7f
commit
5ce9e98b15
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue