Work around pointer-integer comparison in hw_cache

This commit is contained in:
Eidolon 2023-12-15 11:19:34 -06:00
parent 4654bb43bb
commit 016cc1e95f

View file

@ -1083,7 +1083,7 @@ void HWR_GetMappedPatch(patch_t *patch, const UINT8 *colormap)
grPatch = patch->hardware;
// Blatant hack for encore colormapping aside...
if (colormap == colormaps || colormap == NULL || colormap == COLORMAP_REMAPOFFSET)
if (colormap == colormaps || colormap == NULL || colormap == (const UINT8*)(COLORMAP_REMAPOFFSET))
{
// Load the default (green) color in hardware cache
HWR_GetPatch(patch);