Skip to content

Commit

Permalink
another damn nullcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
caligari87 committed Mar 8, 2020
1 parent dcb4bcd commit 0129c10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/lights/laser.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0129c10

Please sign in to comment.