mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix crash if gamedata (pics/colormap.pcx) isn't found
This commit is contained in:
parent
b91b244431
commit
7fe6412d70
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue