From cab0871fe7b97dd27563be95fb315c00a7fdb11d Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Mon, 29 Jul 2024 21:48:49 -0400 Subject: [PATCH] Fix Zora's Sapphire crash (#4254) --- soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c b/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c index 5984e7eee..9ba6a8437 100644 --- a/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c +++ b/soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c @@ -2092,7 +2092,7 @@ void DemoEffect_DrawGetItem(Actor* thisx, PlayState* play) { RandomizerCheck rc = RC_MAX; RandomizerGet rg = RG_NONE; - switch (this->actor.params) { + switch (this->actor.params & 0x00FF) { case DEMO_EFFECT_JEWEL_KOKIRI: rc = RC_QUEEN_GOHMA; rg = RG_KOKIRI_EMERALD;