summaryrefslogtreecommitdiff
path: root/src/other_menus.c
diff options
context:
space:
mode:
authorDennis <dhilhorst2000@gmail.com>2021-07-10 18:23:20 +0200
committerGitHub <noreply@github.com>2021-07-10 11:23:20 -0500
commit92a8e55fdd348a88a365eb389181d8e29da6dad9 (patch)
tree2467ef22cb8cf75bdf056143fab3fac4a68ef404 /src/other_menus.c
parent386299d1f401cb939e6fe3ea16d0ca57731b2648 (diff)
Decompiled some item related functions (#42)
* decompile sub_8091290 * decompile sub_80912c8 * rename functions / struct field * more names * decompile 80913A0 * decompile GetItemMove * decompile sub_80913E0 * rename function * decompile CanSellItem function * rename inventory struct * add some item check functions * fix renaming stuff * this file shouldnt have been here * forgot merge conflict * decompile more item functions * rename some stuff * fix HM/TM naming * Update src/code_801AFA4.c Use enum value for USED_TM * Fix incorrect value Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
Diffstat (limited to 'src/other_menus.c')
-rw-r--r--src/other_menus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/other_menus.c b/src/other_menus.c
index 99c8df9..d5134b2 100644
--- a/src/other_menus.c
+++ b/src/other_menus.c
@@ -2,7 +2,7 @@
#include "input.h"
#include "main_menu.h"
#include "item.h"
-#include "gUnknown_203B460.h"
+#include "team_inventory.h"
#include "menu.h"
#include "memory.h"
#include "text.h"
@@ -62,7 +62,7 @@ struct unkStruct_8035D94
extern struct unkStruct_8035D94 *sub_8035D94();
-extern struct unkStruct_203B460 *gUnknown_203B460;
+extern struct TeamInventory *gTeamInventory_203B460;
extern void sub_8037400(void);
extern void ResetSprites(u32);
@@ -378,7 +378,7 @@ void sub_80371B8(void)
if ((((gUnknown_203B35C->unk4 != 0) &&(gUnknown_203B35C->unk0 == 0)) &&
(pbVar2 = sub_8035D94(), pbVar2->unk0 != 0)) && (pbVar2->unk4 != 0)) {
// We received something..
- gUnknown_203B460->unk50[pbVar2->unk0] += pbVar2->unk4;
+ gTeamInventory_203B460->unk50[pbVar2->unk0] += pbVar2->unk4;
}
}
}