From 41ba6db2d6d4575f585f01925b85588c06e7023a Mon Sep 17 00:00:00 2001 From: Michael McKoy Date: Sun, 7 Oct 2007 20:50:52 +0000 Subject: [PATCH] Fixed bad loop in RTV --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401538 --- plugins/rockthevote.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/rockthevote.sp b/plugins/rockthevote.sp index ead075c0..6a68bdd0 100644 --- a/plugins/rockthevote.sp +++ b/plugins/rockthevote.sp @@ -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)); }