Fix crash if gamedata (pics/colormap.pcx) isn't found

This commit is contained in:
Daniel Gibson 2017-04-03 14:54:46 +02:00
parent b91b244431
commit 7fe6412d70

View file

@ -47,6 +47,11 @@ LoadPCX(char *origname, byte **pic, byte **palette, int *width, int *height)
*pic = NULL; *pic = NULL;
if (palette)
{
*palette = NULL;
}
/* load the file */ /* load the file */
len = ri.FS_LoadFile(filename, (void **)&raw); len = ri.FS_LoadFile(filename, (void **)&raw);