summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Leggett <chris@leggett.dev>2024-07-29 21:48:49 -0400
committerGitHub <noreply@github.com>2024-07-29 18:48:49 -0700
commitcab0871fe7b97dd27563be95fb315c00a7fdb11d (patch)
treee3835db296d73ccb900531b0d823eacf493cdc64
parent06b20a05dd179b8d3fa4897fe855e8c8e0138323 (diff)
Fix Zora's Sapphire crash (#4254)
-rw-r--r--soh/src/overlays/actors/ovl_Demo_Effect/z_demo_effect.c2
1 files changed, 1 insertions, 1 deletions
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;