diff --git a/engine/client/wad.c b/engine/client/wad.c index 9dda4ee15..e8c65d999 100644 --- a/engine/client/wad.c +++ b/engine/client/wad.c @@ -90,7 +90,13 @@ void W_LoadWadFile (char *filename) || header->identification[1] != 'A' || header->identification[2] != 'D' || header->identification[3] != '2') - Sys_Error ("Wad file %s doesn't have WAD2 id\n",filename); + { + Con_Printf ("W_LoadWadFile: Wad file %s doesn't have WAD2 id\n",filename); + wad_numlumps = 0; + Z_Free(wad_base); + wad_base = NULL; + return; + } wad_numlumps = LittleLong(header->numlumps); infotableofs = LittleLong(header->infotableofs);