From e53081df9a8e6100c642d7b61ff791f4c2afbc92 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sun, 22 Aug 2021 12:47:38 -0400 Subject: [PATCH] actually add the comment (#885) --- src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c b/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c index 606d40fd89..db77992f1d 100644 --- a/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c +++ b/src/overlays/actors/ovl_En_Bom_Chu/z_en_bom_chu.c @@ -219,6 +219,8 @@ void EnBomChu_WaitForRelease(EnBomChu* this, GlobalContext* globalCtx) { this->unk_16C.z = Math_CosS(this->actor.shape.rot.y + 0x4000); this->actor.speedXZ = 8.0f; + //! @bug there is no NULL check on the floor poly. If the player is out of bounds the floor poly will be NULL + //! and will cause a crash inside this function. func_809C5BA8(this, this->actor.floorPoly, globalCtx); this->actor.flags |= 1; // make chu targetable func_8002F850(globalCtx, &this->actor);