Skip to content

Commit

Permalink
tr1/camera: check for null
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Jan 29, 2025
1 parent 97089ea commit ad7d35b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tr1/game/camera/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,9 @@ void Camera_Update(void)

void Camera_UpdateCutscene(void)
{
if (g_CineCamera == nullptr) {
return;
}
const CINE_CAMERA *const ref = &g_CineCamera[g_CineFrame];

const int32_t c = Math_Cos(g_CinePosition.rot);
Expand Down

0 comments on commit ad7d35b

Please sign in to comment.