From 2a9d93dd65ca79a25fbce2142351ab4ebea9f625 Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Sat, 21 Jan 2023 06:31:33 -0500 Subject: [PATCH] fix: return enum value so mido moves away properly (#2376) when pulling in documentation i missed a couple returns this was causing mido to never stop blocking the path to the deku tree after searchign the codebase, i found two instances of this mistake this pr fixes them Co-authored-by: briaguya --- soh/src/overlays/actors/ovl_En_Md/z_en_md.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soh/src/overlays/actors/ovl_En_Md/z_en_md.c b/soh/src/overlays/actors/ovl_En_Md/z_en_md.c index 658822523..496cab769 100644 --- a/soh/src/overlays/actors/ovl_En_Md/z_en_md.c +++ b/soh/src/overlays/actors/ovl_En_Md/z_en_md.c @@ -469,12 +469,12 @@ s16 func_80AAAF04(PlayState* play, Actor* thisx) { break; case 0x1033: case 0x1067: - NPC_TALK_STATE_ACTION; + return NPC_TALK_STATE_ACTION; } return NPC_TALK_STATE_IDLE; case TEXT_STATE_EVENT: if (Message_ShouldAdvance(play)) { - NPC_TALK_STATE_ACTION; + return NPC_TALK_STATE_ACTION; } default: return NPC_TALK_STATE_TALKING;