Revert "Fix R_CacheSpriteBrightMap trying to cache out of range lump"
This reverts commit cc94145e19.
This commit is contained in:
parent
cc94145e19
commit
78df4edfce
1 changed files with 1 additions and 8 deletions
|
|
@ -1240,14 +1240,7 @@ static patch_t *R_CacheSpriteBrightMap(const spriteinfo_t *sprinfo, UINT8 frame)
|
|||
name = sprinfo->bright[SPRINFO_DEFAULT_PIVOT];
|
||||
}
|
||||
|
||||
const lumpnum_t num = W_CheckNumForLongName(name);
|
||||
|
||||
if (num == LUMPERROR)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return W_CachePatchNum(num, PU_SPRITE);
|
||||
return W_CachePatchNum(W_CheckNumForLongName(name), PU_SPRITE);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue