plugins/mapchooser.sp
changeset 1530 be1fc1042aeb
parent 1529 af7995664ac4
child 1531 766b08c6e6c2
     1.1 --- a/plugins/mapchooser.sp	Wed Oct 03 23:51:34 2007 +0000
     1.2 +++ b/plugins/mapchooser.sp	Fri Oct 05 00:12:14 2007 +0000
     1.3 @@ -504,12 +504,12 @@
     1.4  	
     1.5  	for (new i = 0; i < limit; i++)
     1.6  	{
     1.7 -		new b = GetRandomInt(0, g_MapList - 1);
     1.8 +		new b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
     1.9  		GetArrayString(g_MapList, b, map, sizeof(map));
    1.10  		
    1.11  		while (IsStringInArray(g_NextMapList, map) || (oldMaps && IsStringInArray(g_OldMapList, map)))
    1.12  		{
    1.13 -			b = GetRandomInt(0, g_MapList - 1);
    1.14 +			b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
    1.15  			GetArrayString(g_MapList, b, map, sizeof(map));
    1.16  		}
    1.17