From 875a5afa934083912456195eb43666d61590e4da Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 7 Oct 2018 05:20:37 +0000 Subject: [PATCH] Replace APLAYER picnum check in A_ShootWithZvel() with null pointer check git-svn-id: https://svn.eduke32.com/eduke32@7006 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index e5dc762c6..9d71798e5 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -1577,7 +1577,7 @@ int A_ShootWithZvel(int const spriteNum, int const projecTile, int const forceZv int shootAng; vec3_t startPos; - if (pSprite->picnum == APLAYER) + if (pPlayer != NULL) { startPos = *(vec3_t *)pPlayer; startPos.z += pPlayer->pyoff + ZOFFSET6;