From 2fa00d01eee21702cba0e34396e893759133525e Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Mon, 26 Feb 2018 15:56:59 +0100 Subject: [PATCH] make it compile --- include/battle.h | 2 +- src/battle_ai_switch_items.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/battle.h b/include/battle.h index 89a38254a..09a53c8a0 100644 --- a/include/battle.h +++ b/include/battle.h @@ -3,9 +3,9 @@ // should they be included here or included individually by every file? #include "constants/battle.h" +#include "battle_main.h" #include "battle_util.h" #include "battle_script_commands.h" -#include "battle_main.h" #include "battle_ai_switch_items.h" #include "battle_gfx_sfx_util.h" #include "battle_util2.h" diff --git a/src/battle_ai_switch_items.c b/src/battle_ai_switch_items.c index 9dfbd0723..5426cc774 100644 --- a/src/battle_ai_switch_items.c +++ b/src/battle_ai_switch_items.c @@ -9,7 +9,6 @@ #include "util.h" #include "constants/items.h" -extern const u8 gTypeEffectiveness[]; extern const u8 * const gItemEffectTable[]; // todo: fix once struct is declared // this file's functions