Fixed crash on finishgame CCMD in non-game modes

http://forum.zdoom.org/viewtopic.php?t=49943
This commit is contained in:
alexey.lysiuk 2015-11-21 17:43:49 +02:00
parent a8ac748123
commit 20bf4d6c8e

View file

@ -698,6 +698,13 @@ void G_DoCompleted (void)
gameaction = ga_nothing;
if ( gamestate == GS_DEMOSCREEN
|| gamestate == GS_FULLCONSOLE
|| gamestate == GS_STARTUP)
{
return;
}
if (gamestate == GS_TITLELEVEL)
{
level.MapName = nextlevel;