diff --git a/asm/kinstone.s b/asm/kinstone.s index 37325da0..fd6f8de5 100644 --- a/asm/kinstone.s +++ b/asm/kinstone.s @@ -258,19 +258,3 @@ sub_080186C0: @ 0x080186C0 bx lr .align 2, 0 _080186D0: .4byte gArea - - thumb_func_start sub_080186D4 -sub_080186D4: @ 0x080186D4 - push {lr} - ldr r0, _080186E8 @ =gArea - adds r0, #0x28 - ldrb r0, [r0] - cmp r0, #0xff - bne _080186E4 - bl sub_0801855C -_080186E4: - pop {pc} - .align 2, 0 -_080186E8: .4byte gArea - - diff --git a/src/kinstone.c b/src/kinstone.c index 80a3701f..8ec8d54e 100644 --- a/src/kinstone.c +++ b/src/kinstone.c @@ -5,6 +5,8 @@ #include "flags.h" #include "player.h" #include "kinstone.h" +#include "area.h" +#include "manager.h" extern EntityData gUnk_080FEC28[]; extern EntityData gUnk_080FEBE8[]; @@ -26,6 +28,12 @@ void sub_080189EC(int); void sub_0801876C(int, int); void sub_08018738(u32, int); +void sub_080186D4(void) { + if (gArea.inventoryGfxIdx == 0xff) { + sub_0801855C(); + } +} + void sub_080186EC(u32 param_1) { struct_080C9CBC* psVar1; u32 i;