diff --git a/src/d_main.cpp b/src/d_main.cpp index 96ad3c97d..9d73b161a 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -684,8 +684,19 @@ void D_Display () if (viewactive) { - R_SetFOV (r_viewpoint, players[consoleplayer].camera && players[consoleplayer].camera->player ? - players[consoleplayer].camera->player->FOV : players[consoleplayer].camera->CameraFOV); + DAngle fov = 90.f; + if (players[consoleplayer].camera != nullptr) + { + if (players[consoleplayer].camera && players[consoleplayer].camera->player) + { + fov = players[consoleplayer].camera->player->FOV; + } + else + { + fov = players[consoleplayer].camera->CameraFOV; + } + } + R_SetFOV(r_viewpoint, fov); } // [RH] change the screen mode if needed