Fixed GetArraySize problem in mapchooser
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401536
This commit is contained in:
parent
a15f245e5c
commit
de496cc583
@ -504,12 +504,12 @@ CreateNextVote()
|
|||||||
|
|
||||||
for (new i = 0; i < limit; i++)
|
for (new i = 0; i < limit; i++)
|
||||||
{
|
{
|
||||||
new b = GetRandomInt(0, g_MapList - 1);
|
new b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
|
||||||
GetArrayString(g_MapList, b, map, sizeof(map));
|
GetArrayString(g_MapList, b, map, sizeof(map));
|
||||||
|
|
||||||
while (IsStringInArray(g_NextMapList, map) || (oldMaps && IsStringInArray(g_OldMapList, map)))
|
while (IsStringInArray(g_NextMapList, map) || (oldMaps && IsStringInArray(g_OldMapList, map)))
|
||||||
{
|
{
|
||||||
b = GetRandomInt(0, g_MapList - 1);
|
b = GetRandomInt(0, GetArraySize(g_MapList) - 1);
|
||||||
GetArrayString(g_MapList, b, map, sizeof(map));
|
GetArrayString(g_MapList, b, map, sizeof(map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user