Fix crash in pole_base_loop()
This commit is contained in:
parent
ffc2b431ec
commit
4fcbecd0cb
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue