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
This commit is contained in:
terminx 2018-10-07 05:20:37 +00:00
parent 0757a6570b
commit 875a5afa93

View file

@ -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;