summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <f1ana@users.noreply.github.com>2026-10-19 08:15:39 -0400
committerGitHub <noreply@github.com>2026-10-19 12:15:39 +0000
commitd804792bd7cbbfff718ad0ba432bbba16a5b2dbd (patch)
tree1392e4010f29bc555a4881932aaae7fad6999be2
parentf93e3cfbc88534b4304652f73c80fadbbe81c3aa (diff)
[Bugfix] Bombchu count slider crashes with no game loaded (#7426)
-rw-r--r--soh/soh/Enhancements/Minigames/BombchuBowling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/soh/Enhancements/Minigames/BombchuBowling.cpp b/soh/soh/Enhancements/Minigames/BombchuBowling.cpp
index 84f08b146..c433fc900 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;