diff --git a/src/g_game.c b/src/g_game.c index 0aaa62f01..144975177 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3397,7 +3397,7 @@ INT32 G_GetGametypeByName(const char *gametypestr) { INT32 i; - for (i = 0; i < NUMGAMETYPES; i++) + for (i = 0; i < gametypecount; i++) if (!stricmp(gametypestr, Gametype_Names[i])) return i;