Proooooooobably need a null check there.

This commit is contained in:
Mari the Deer 2023-12-24 18:27:07 +01:00
commit 852e2bfec0
2 changed files with 3 additions and 3 deletions

View file

@ -198,7 +198,7 @@ extend Class Demolitionist
override void PlayerThink()
{
if ( player.playerstate != PST_DEAD ) deadtimer = 0;
if ( !player || (player.playerstate != PST_DEAD) ) deadtimer = 0;
oldangles = (angle,pitch,roll);
if ( player && (player.mo == self) && (player.playerstate != PST_DEAD) && (player.cmd.buttons&BT_USE) )
{