Skip to content

Commit

Permalink
Merge remote-tracking branch 'public/bugfix/crash-handler-flxstate-ch…
Browse files Browse the repository at this point in the history
…eck' into bugfix/public-fixes
  • Loading branch information
EliteMasterEric committed May 9, 2024
2 parents 34a6e16 + be07760 commit 0b82a20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/funkin/util/logging/CrashHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ class CrashHandler

fullContents += '\n';

fullContents += 'Flixel Current State: ${Type.getClassName(Type.getClass(FlxG.state))}\n';
var currentState = FlxG.state != null ? Type.getClassName(Type.getClass(FlxG.state)) : 'No state loaded';

fullContents += 'Flixel Current State: ${currentState}\n';

fullContents += '\n';

Expand Down

0 comments on commit 0b82a20

Please sign in to comment.