mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
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:
parent
76863607e3
commit
798eaeb980
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue