Fixed crash in find_mario_floor_and_ceil()

This commit is contained in:
MysterD 2023-11-08 12:19:41 -08:00
parent 21583cff0b
commit 3585e20eee
1 changed files with 2 additions and 0 deletions

View File

@ -7155,6 +7155,8 @@ s32 rotate_camera_around_walls(struct Camera *c, Vec3f cPos, s16 *avoidYaw, s16
*/
void find_mario_floor_and_ceil(struct PlayerGeometry *pg) {
if (!pg) { return; }
if (!sMarioCamState) { return; }
struct Surface *surf = NULL;
s16 tempCheckingSurfaceCollisionsForCamera = gCheckingSurfaceCollisionsForCamera;
gCheckingSurfaceCollisionsForCamera = TRUE;