Use gametypecount in G_GetGametypeByName

This commit is contained in:
James R 2019-12-30 17:57:18 -08:00
parent fc8c0f8a9a
commit 5e94ca07bc

View file

@ -3398,7 +3398,7 @@ INT32 G_GetGametypeByName(const char *gametypestr)
{ {
INT32 i; INT32 i;
for (i = 0; i < NUMGAMETYPES; i++) for (i = 0; i < gametypecount; i++)
if (!stricmp(gametypestr, Gametype_Names[i])) if (!stricmp(gametypestr, Gametype_Names[i]))
return i; return i;