Skip to content

Commit 287628b

Browse files
authored
mapchooser: Clear map history on limit change (#1197)
This commit fixes a bug where if the value of `sm_mapvote_exclude` is reduced, the change may not take effect right away.
1 parent f27dc2f commit 287628b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/mapchooser.sp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public void OnMapEnd()
260260
RemoveStringFromArray(g_OldMapList, map);
261261
g_OldMapList.PushString(map);
262262

263-
if (g_OldMapList.Length > g_Cvar_ExcludeMaps.IntValue)
263+
while (g_OldMapList.Length > g_Cvar_ExcludeMaps.IntValue)
264264
{
265265
g_OldMapList.Erase(0);
266266
}

0 commit comments

Comments
 (0)