mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 07:05:43 +03:00
Draw_ValidateCustomLogo: Fixed incorrect offset to palette size
This commit is contained in:
parent
ec47e4d978
commit
3c282b435c
@ -756,8 +756,8 @@ qboolean Draw_ValidateCustomLogo(cachewad_t *wad, unsigned char *data, lumpinfo_
|
||||
Con_Printf("%s: Bad cached wad size %i/%i on %s\n", __func__, size + sizeof(miptex_t), lump->size + wad->cacheExtra, wad->name);
|
||||
}
|
||||
|
||||
paloffset = size + sizeof(lumpinfo_t) + sizeof(miptex_t);
|
||||
palettesize = *(u_short *)(data + paloffset); // Get palette size
|
||||
paloffset = size + sizeof(miptex_t);
|
||||
palettesize = *(u_short *)(data + wad->cacheExtra + paloffset); // Get palette size
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user