Fix crash if gamedata (pics/colormap.pcx) isn't found
This commit is contained in:
parent
b91b244431
commit
7fe6412d70
|
@ -47,6 +47,11 @@ LoadPCX(char *origname, byte **pic, byte **palette, int *width, int *height)
|
|||
|
||||
*pic = NULL;
|
||||
|
||||
if (palette)
|
||||
{
|
||||
*palette = NULL;
|
||||
}
|
||||
|
||||
/* load the file */
|
||||
len = ri.FS_LoadFile(filename, (void **)&raw);
|
||||
|
||||
|
|
Loading…
Reference in New Issue