From 4fcbecd0cb71f323e72f6ae497d530d84821682b Mon Sep 17 00:00:00 2001 From: MysterD Date: Thu, 20 Apr 2023 00:26:17 -0700 Subject: [PATCH] Fix crash in pole_base_loop() --- src/game/behaviors/pole_base.inc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/behaviors/pole_base.inc.c b/src/game/behaviors/pole_base.inc.c index 543fa28d..0929d4e5 100644 --- a/src/game/behaviors/pole_base.inc.c +++ b/src/game/behaviors/pole_base.inc.c @@ -1,6 +1,7 @@ // pole_base.inc.c void bhv_pole_base_loop(void) { + if (!gMarioObject) { return; } if (o->oPosY - 10.0f < gMarioObject->oPosY && gMarioObject->oPosY < o->oPosY + o->hitboxHeight + 30.0f) if (o->oTimer > 10)