From 0129c104af62466e9cb83887a3479309dda48d97 Mon Sep 17 00:00:00 2001 From: Sterling Parker Date: Sat, 7 Mar 2020 23:38:42 -0700 Subject: [PATCH] another damn nullcheck --- modules/lights/laser.zsc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lights/laser.zsc b/modules/lights/laser.zsc index 55257733..8989e886 100644 --- a/modules/lights/laser.zsc +++ b/modules/lights/laser.zsc @@ -53,6 +53,7 @@ class UaS_PlayerLaser_actual : Actor { override void Tick() { super.Tick(); if (!followtarget) { destroy(); return; } + if (!HDPlayerPawn(followtarget)) { destroy(); return; } if (!HDPlayerPawn(followtarget).scopecamera) { destroy(); return; } // lower laser in response to weapon lowering