Fix another potantial bug.

This commit is contained in:
Arkshine 2014-07-20 17:48:05 +02:00
parent 0347571ee9
commit a2b564eaaa

View File

@ -215,7 +215,7 @@ public randomStep(index) {
if (g_Team[index] == 0 && !(get_user_flags(index) & ADMIN_IMMUNITY)) {
client_cmd(index, "%s", g_AutoAssignAck);
}
if (++index > MaxClients) {
if (++index >= MaxClients) {
return PLUGIN_HANDLED_MAIN
}
}