From: havoc Date: Mon, 7 Nov 2005 09:52:57 +0000 (+0000) Subject: fix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass... X-Git-Tag: xonotic-v0.1.0preview~4485 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7c258fa4fa13a382584118b3fcbddc467e44b8b;p=xonotic%2Fdarkplaces.git fix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass &filesize to FS_LoadFile git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5799 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/palette.c b/palette.c index 7f569955..f18d7e01 100644 --- a/palette.c +++ b/palette.c @@ -32,7 +32,7 @@ void Palette_SetupSpecialPalettes(void) unsigned char *colormap; fs_offset_t filesize; - colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true, NULL); + colormap = FS_LoadFile("gfx/colormap.lmp", tempmempool, true, &filesize); if (colormap && filesize >= 16385) fullbright_start = 256 - colormap[16384]; else