Account for the fact brightmaps can return NULL
This commit is contained in:
parent
0c1891aa36
commit
005f2989f7
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue