Fix crash in pole_base_loop()

This commit is contained in:
MysterD 2023-04-20 00:26:17 -07:00
parent 4b8c40c734
commit 2f59d29f95

View file

@ -1,6 +1,7 @@
// pole_base.inc.c // pole_base.inc.c
void bhv_pole_base_loop(void) { void bhv_pole_base_loop(void) {
if (!gMarioObject) { return; }
if (o->oPosY - 10.0f < gMarioObject->oPosY if (o->oPosY - 10.0f < gMarioObject->oPosY
&& gMarioObject->oPosY < o->oPosY + o->hitboxHeight + 30.0f) && gMarioObject->oPosY < o->oPosY + o->hitboxHeight + 30.0f)
if (o->oTimer > 10) if (o->oTimer > 10)