Skip to content

Commit

Permalink
Added a null check and early termination of Tick() override at line 455.
Browse files Browse the repository at this point in the history
  • Loading branch information
JRHard771 committed Jun 10, 2020
1 parent 2bddf11 commit 02ae2a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ZSCRIPT.ZSC
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,11 @@ class Bubble_ReadyWeapon : HideousBubble
}
let rw = hdweapon(target.player.readyweapon);
let hdp = hdplayerpawn(target);
if (!hdp)
{
sprite = GetSpriteIndex("TNT1");
return;
}
angle = (hdp.scopecamera ? hdp.scopecamera.angle : hdp.angle) - 90. + hdp.hudbob.x * 0.1;
roll = (hdp.scopecamera ? hdp.scopecamera.pitch : hdp.pitch);
lower = hdp.hudbob.y * 0.1;
Expand Down

0 comments on commit 02ae2a1

Please sign in to comment.