Allow passing a null pointer to spriteheightofsptr() for the height return value

git-svn-id: https://svn.eduke32.com/eduke32@7405 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-19 17:08:12 +00:00
parent 76863607e3
commit 798eaeb980

View file

@ -10230,7 +10230,8 @@ int32_t spriteheightofsptr(const uspritetype *spr, int32_t *height, int32_t also
const int32_t picnum=spr->picnum, yrepeat=spr->yrepeat;
hei = (tilesiz[picnum].y*yrepeat)<<2;
*height = hei;
if (height != NULL)
*height = hei;
if (spr->cstat&128)
zofs = hei>>1;