Add a null check in PlayerPawn::CheckFOV

This commit is contained in:
nashmuhandes 2021-03-01 01:13:36 +08:00 committed by Christoph Oelckers
parent feb3520ee9
commit c7edb9d22f

View file

@ -928,6 +928,8 @@ class PlayerPawn : Actor
{
let player = self.player;
if (!player) return;
// [RH] Zoom the player's FOV
float desired = player.DesiredFOV;
// Adjust FOV using on the currently held weapon.