From 0a6ac5077482c1969bc802e46247901b3f69eaff Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Sat, 8 Jan 2022 11:32:43 +0200 Subject: [PATCH] Fix r1 call --- src/npc/ghostBrothers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/npc/ghostBrothers.c b/src/npc/ghostBrothers.c index 6124ceca..1093a14d 100644 --- a/src/npc/ghostBrothers.c +++ b/src/npc/ghostBrothers.c @@ -21,13 +21,12 @@ extern u8 gUnk_0811022E[]; void sub_08065C0C(Entity* this); static EntityAction* const gUnk_08110164[]; -extern u32 _call_via_r1(u32, u32*); void GhostBrothers(Entity* this) { if (this->flags & 0x2) { sub_08065C0C(this); } else { - _call_via_r1((u32)this, (u32*)gUnk_08110164[this->type]); + gUnk_08110164[this->type](this); if (this->type < 3) { s8* ptr = gUnk_0811015C;