From 558856d23417bfd74ab0da3173df5d5e7bd51423 Mon Sep 17 00:00:00 2001 From: Sirius902 <3645979-Sirius902@users.noreply.gitlab.com> Date: Tue, 6 Oct 2020 12:50:58 -0700 Subject: [PATCH] Eh early return probably makes more sense here --- src/overlays/actors/ovl_En_Ik/z_en_ik.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/overlays/actors/ovl_En_Ik/z_en_ik.c b/src/overlays/actors/ovl_En_Ik/z_en_ik.c index b77db23955..2fd463312f 100644 --- a/src/overlays/actors/ovl_En_Ik/z_en_ik.c +++ b/src/overlays/actors/ovl_En_Ik/z_en_ik.c @@ -913,9 +913,10 @@ void EnIk_Update(Actor* thisx, GlobalContext* globalCtx) { if (this->action < 0 || this->action >= ARRAY_COUNT(sActionFuncs) || sActionFuncs[this->action] == NULL) { osSyncPrintf(VT_FGCOL(RED) "メインモードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST); - } else { - sActionFuncs[this->action](this, globalCtx); + return; } + + sActionFuncs[this->action](this, globalCtx); } s32 EnIk_OverrideLimbDraw1(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot, Actor* actor); @@ -951,9 +952,10 @@ void EnIk_Draw(Actor* thisx, GlobalContext* globalCtx) { if (this->drawMode < 0 || this->drawMode >= ARRAY_COUNT(sDrawFuncs) || sDrawFuncs[this->drawMode] == NULL) { osSyncPrintf(VT_FGCOL(RED) "描画モードがおかしい!!!!!!!!!!!!!!!!!!!!!!!!!\n" VT_RST); - } else { - sDrawFuncs[this->drawMode](this, globalCtx); + return; } + + sDrawFuncs[this->drawMode](this, globalCtx); } void func_80A780D0(EnIk* this, GlobalContext* globalCtx) {