array index issue supposedly
This commit is contained in:
parent
ae389a90f9
commit
6a9b76a0c2
@ -402,6 +402,8 @@ public int RetrieveZoneIndex(char[] zone)
|
|||||||
{
|
{
|
||||||
//if you leave zone_2 you want the corresponding racezone to be zone_3
|
//if you leave zone_2 you want the corresponding racezone to be zone_3
|
||||||
int iterator = strlen(zone) - 1;
|
int iterator = strlen(zone) - 1;
|
||||||
|
if (iterator == -1)
|
||||||
|
return 1;
|
||||||
char l_sZone[g_dIndex];
|
char l_sZone[g_dIndex];
|
||||||
Format(l_sZone, sizeof(l_sZone), zone);
|
Format(l_sZone, sizeof(l_sZone), zone);
|
||||||
while (IsCharNumeric(l_sZone[iterator]))
|
while (IsCharNumeric(l_sZone[iterator]))
|
||||||
|
Loading…
Reference in New Issue
Block a user