summaryrefslogtreecommitdiff
path: root/src/option_menu.c
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-14 19:04:24 -0400
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2020-06-14 19:04:24 -0400
commit7cabc3d1a51a48a31b02d1c24b26da2a5c654f35 (patch)
tree22604fd633f5a4b8d76d11642e00940813c806bd /src/option_menu.c
parentbc143a695d54f7ac663b2b3f1ea98c53b21842e2 (diff)
pokemon_summary_screen.c, part 2.
Also fix prototype of MenuHelpers_CallLinkSomething.
Diffstat (limited to 'src/option_menu.c')
-rw-r--r--src/option_menu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/option_menu.c b/src/option_menu.c
index 383f21ae1..f011bc1ec 100644
--- a/src/option_menu.c
+++ b/src/option_menu.c
@@ -3,7 +3,6 @@
#include "scanline_effect.h"
#include "text_window_graphics.h"
#include "menu.h"
-#include "menu_helpers.h"
#include "task.h"
#include "overworld.h"
#include "help_system.h"
@@ -12,6 +11,9 @@
#include "field_fadetransition.h"
#include "gba/m4a_internal.h"
+// can't include the one in menu_helpers.h since Task_OptionMenu needs bool32 for matching
+bool32 MenuHelpers_CallLinkSomething(void);
+
// Menu items
enum
{
@@ -369,7 +371,7 @@ static void Task_OptionMenu(u8 taskId)
sOptionMenuPtr->loadState++;
break;
case 2:
- if (MenuHelpers_CallLinkSomething() == TRUE)
+ if (((bool32)MenuHelpers_CallLinkSomething()) == TRUE)
break;
switch (OptionMenu_ProcessInput())
{