mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Use gametypecount in G_GetGametypeByName
This commit is contained in:
parent
fc8c0f8a9a
commit
5e94ca07bc
1 changed files with 1 additions and 1 deletions
|
@ -3398,7 +3398,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