From c7edb9d22fbe4964c08780574897b0c735d94646 Mon Sep 17 00:00:00 2001 From: nashmuhandes Date: Mon, 1 Mar 2021 01:13:36 +0800 Subject: [PATCH] Add a null check in PlayerPawn::CheckFOV --- wadsrc/static/zscript/actors/player/player.zs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wadsrc/static/zscript/actors/player/player.zs b/wadsrc/static/zscript/actors/player/player.zs index f48027cce..4659f5284 100644 --- a/wadsrc/static/zscript/actors/player/player.zs +++ b/wadsrc/static/zscript/actors/player/player.zs @@ -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.