From 568fe41d61e27b97e25861d46a529d94de8962a4 Mon Sep 17 00:00:00 2001 From: mattias-blum <142374929+mattias-blum@users.noreply.github.com> Date: Sun, 18 May 2025 10:15:09 -0400 Subject: PR changes made --- src/d/d_menu_option.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/d/d_menu_option.cpp') diff --git a/src/d/d_menu_option.cpp b/src/d/d_menu_option.cpp index 17189fd3..fa43b0a6 100644 --- a/src/d/d_menu_option.cpp +++ b/src/d/d_menu_option.cpp @@ -579,14 +579,12 @@ void dMenu_Option_c::noteSet() { float fVar1 = m740[0].pane[1].mBounds.getHeight(); float fVar2 = m740[1].pane[1].mBounds.getHeight(); - mesg_header* mesg_header = msgGet.getMesgHeader(0x262); - if (mesg_header == NULL) { - JUTAssertion::showAssert(JUTAssertion::getSDevice(), "d_menu_option.cpp", 0x313, "head_p"); - OSPanic("d_menu_option.cpp", 0x313, "Halt"); - } + mesg_header* head_p = msgGet.getMesgHeader(0x262); + + JUT_ASSERT(0x313, head_p); - const char* mesg = msgGet.getMessage(mesg_header); - mesg_entry msg_entry = msgGet.getMesgEntry(mesg_header); + const char* mesg = msgGet.getMessage(head_p); + mesg_entry msg_entry = msgGet.getMesgEntry(head_p); msgDataProc.dataInit(); -- cgit v1.2.3