Merge branch 'oops' into 'next'

Fix unknown gametype for map command crashing the game

See merge request STJr/SRB2!606
This commit is contained in:
James R 2019-12-31 01:34:39 -05:00
commit 3112dff345

View file

@ -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;