mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +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;
|
||||
|
||||
if (palette)
|
||||
{
|
||||
*palette = NULL;
|
||||
}
|
||||
|
||||
/* load the file */
|
||||
len = ri.FS_LoadFile(filename, (void **)&raw);
|
||||
|
||||
|
|
Loading…
Reference in a new issue