X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=common.c;h=8e9bf40a40f8273e4476faabdc0fd802c4ffa514;hb=55c3001cc18a0c55096bd3bb04af734df7e8025b;hp=b75a348e0888794973e73c7be1535966c5bc2144;hpb=b1a8aaaee6d26247423e17d2a2ba8ea1cc9692a8;p=xonotic%2Fdarkplaces.git diff --git a/common.c b/common.c index b75a348e..8e9bf40a 100644 --- a/common.c +++ b/common.c @@ -1479,7 +1479,7 @@ void COM_InitGameType (void) // check executable filename for keywords for (i = 1;i < (int)(sizeof (gamemode_info) / sizeof (gamemode_info[0]));i++) - if (strstr (name, gamemode_info[i].prog_name)) + if (gamemode_info[i].prog_name && gamemode_info[i].prog_name[0] && strstr (name, gamemode_info[i].prog_name)) { index = i; break;