]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.c
fix a bug in loading colormap.lmp to determine number of fullbrights, forgot to pass...
[xonotic/darkplaces.git] / palette.c
index 7f56995587f36174c97218ad01b48579bb6b9f5c..f18d7e01873b598c0549e17d4687534ae3b3a16e 100644 (file)
--- 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