mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
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:
commit
3112dff345
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue