mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Use gametypecount in G_GetGametypeByName
This commit is contained in:
parent
67ca512120
commit
2e8f83b79c
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…
Add table
Reference in a new issue