array index issue supposedly

This commit is contained in:
jenzur 2020-04-15 01:00:12 +02:00
parent ae389a90f9
commit 6a9b76a0c2

View File

@ -402,6 +402,8 @@ public int RetrieveZoneIndex(char[] zone)
{
//if you leave zone_2 you want the corresponding racezone to be zone_3
int iterator = strlen(zone) - 1;
if (iterator == -1)
return 1;
char l_sZone[g_dIndex];
Format(l_sZone, sizeof(l_sZone), zone);
while (IsCharNumeric(l_sZone[iterator]))