Fixed bad loop in RTV

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401538
This commit is contained in:
Michael McKoy 2007-10-07 20:50:52 +00:00
parent 2173773f35
commit 41ba6db2d6

View File

@ -359,12 +359,12 @@ public Action:Timer_StartRTV(Handle:timer)
for (new i = 0; i < limit; i++)
{
decl String:map[64];
new b = GetRandomInt(0, limit - 1);
new b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
GetArrayString(g_MapList, b, map, sizeof(map));
while (IsStringInArray(g_RTVMapList, map))
{
b = GetRandomInt(0, limit - 1);
b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
GetArrayString(g_MapList, b, map, sizeof(map));
}