mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-16 01:31:30 +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;
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue