mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
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:
parent
0757a6570b
commit
875a5afa93
1 changed files with 1 additions and 1 deletions
|
@ -1577,7 +1577,7 @@ int A_ShootWithZvel(int const spriteNum, int const projecTile, int const forceZv
|
||||||
int shootAng;
|
int shootAng;
|
||||||
vec3_t startPos;
|
vec3_t startPos;
|
||||||
|
|
||||||
if (pSprite->picnum == APLAYER)
|
if (pPlayer != NULL)
|
||||||
{
|
{
|
||||||
startPos = *(vec3_t *)pPlayer;
|
startPos = *(vec3_t *)pPlayer;
|
||||||
startPos.z += pPlayer->pyoff + ZOFFSET6;
|
startPos.z += pPlayer->pyoff + ZOFFSET6;
|
||||||
|
|
Loading…
Reference in a new issue