From 0c9ee2e59cc3c74b502c6b0fab8e0b6ce6357677 Mon Sep 17 00:00:00 2001 From: red031000 Date: Thu, 5 Oct 2023 00:52:59 +0100 Subject: [PATCH] cleanup error handling --- arm9/src/error_handling.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/arm9/src/error_handling.c b/arm9/src/error_handling.c index 1cc154632..5f8641ed6 100644 --- a/arm9/src/error_handling.c +++ b/arm9/src/error_handling.c @@ -3,15 +3,12 @@ #include "error_message_reset.h" #include "unk_02031734.h" +void GF_AssertFail(void) { + if (!sub_02031810()) { + return; + } - -void GF_AssertFail(void) -{ - if (sub_02031810()) - { - if (OS_GetProcMode() != OS_PROCMODE_IRQ) - { - PrintErrorMessageAndReset(); - } + if (OS_GetProcMode() != OS_PROCMODE_IRQ) { + PrintErrorMessageAndReset(); } }