From d804792bd7cbbfff718ad0ba432bbba16a5b2dbd Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 19 Oct 2026 08:15:39 -0400 Subject: [PATCH] [Bugfix] Bombchu count slider crashes with no game loaded (#7426) --- soh/soh/Enhancements/Minigames/BombchuBowling.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/Minigames/BombchuBowling.cpp b/soh/soh/Enhancements/Minigames/BombchuBowling.cpp index 84f08b146e..c433fc9008 100644 --- a/soh/soh/Enhancements/Minigames/BombchuBowling.cpp +++ b/soh/soh/Enhancements/Minigames/BombchuBowling.cpp @@ -91,7 +91,7 @@ static void RegisterBombchuBowlingAmmo() { static s32 prevAmmoValue = CUCCO_BOWLING_AMMO_DEFAULT; s32 nextAmmoValue = CVAR_BOWLING_VALUE ? CVAR_BOWLING_AMMO_VALUE : CUCCO_BOWLING_AMMO_DEFAULT; - if ((prevAmmoValue != nextAmmoValue) && (gPlayState->bombchuBowlingStatus > 0)) { + if ((prevAmmoValue != nextAmmoValue) && gPlayState != NULL && (gPlayState->bombchuBowlingStatus > 0)) { gPlayState->bombchuBowlingStatus += nextAmmoValue - prevAmmoValue; if (gPlayState->bombchuBowlingStatus <= 0) { gPlayState->bombchuBowlingStatus = -1;