mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Extra catch to prevent SIGSEGV
This commit is contained in:
parent
46441092dc
commit
4f1bb14732
1 changed files with 6 additions and 0 deletions
|
|
@ -4599,6 +4599,12 @@ void G_InitNew(UINT8 pencoremode, INT32 map, boolean resetplayer, boolean skippr
|
||||||
// internal game map
|
// internal game map
|
||||||
// well this check is useless because it is done before (d_netcmd.c::command_map_f)
|
// well this check is useless because it is done before (d_netcmd.c::command_map_f)
|
||||||
// but in case of for demos....
|
// but in case of for demos....
|
||||||
|
if (!mapname)
|
||||||
|
{
|
||||||
|
I_Error("Internal game map with ID %d not found\n", map);
|
||||||
|
Command_ExitGame_f();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (mapheaderinfo[map-1]->lumpnum == LUMPERROR)
|
if (mapheaderinfo[map-1]->lumpnum == LUMPERROR)
|
||||||
{
|
{
|
||||||
I_Error("Internal game map '%s' not found\n", mapname);
|
I_Error("Internal game map '%s' not found\n", mapname);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue