Account for the fact brightmaps can return NULL

This commit is contained in:
NepDisk 2025-06-29 01:09:17 -04:00
parent 0c1891aa36
commit 005f2989f7

View file

@ -1284,6 +1284,11 @@ static patch_t *R_CacheSpriteBrightMap(const spriteinfo_t *sprinfo, UINT8 frame)
name = sprinfo->bright[SPRINFO_DEFAULT_PIVOT];
}
if (name == NULL)
{
return NULL;
}
const lumpnum_t num = W_CheckNumForLongName(name);
if (num == LUMPERROR)