summaryrefslogtreecommitdiff
path: root/src/items.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-12-31 16:08:12 -0600
committerSeth Barberee <seth.barberee@gmail.com>2022-02-17 18:59:53 -0600
commit3de1f79307eda8de1232dfb612097cef261d0431 (patch)
tree5e8c400a54e6679564684c21eb7cd2eda50aad9a /src/items.c
parentef97af7d030583c60a5c50e54f6fda5c607b2685 (diff)
add more to moves header
Diffstat (limited to 'src/items.c')
-rw-r--r--src/items.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/items.c b/src/items.c
index 4b5a710..526dff7 100644
--- a/src/items.c
+++ b/src/items.c
@@ -5,7 +5,9 @@
#include "team_inventory.h"
#include "random.h"
#include "pokemon.h"
+#include "random.h"
#include "subStruct_203B240.h"
+#include "team_inventory.h"
#include <stddef.h>
@@ -702,13 +704,13 @@ u32 sub_80913E0(struct ItemSlot* slot, u32 a2, struct subStruct_203B240 ** a3)
u8* typestring;
u32 result;
- InitPokemonMove(buffer8, move);
+ InitPokemonMove((struct PokemonMove *)buffer8, move);
sub_80078A4(a2, 4, 82, 200, 7);
xxx_format_and_draw(4, 84, gPtrTypeText, a2, 0);
- moves_data = GetMoveType(buffer8);
+ moves_data = GetMoveType((struct PokemonMove *)buffer8);
typestring = GetUnformattedTypeString(moves_data);
xxx_format_and_draw(64, 84, typestring, a2, 0);
- result = GetMoveMaxPP(buffer8);
+ result = GetMoveMaxPP((struct PokemonMove *)buffer8);
gUnknown_202DE30 = result;
xxx_format_and_draw(128, 84, gPtrPPD0Text, a2, 0);
}