Merge pull request #4442 from LoolzRules/master

issue #4411 fix
This commit is contained in:
Richard Davey 2019-04-05 18:28:39 +01:00 committed by GitHub
commit 6ba3f49b08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ var Add = function (array, item, limit, callback, context)
if (array.indexOf(item[itemLength]) !== -1)
{
// Already exists in array, so remove it
item.pop();
item.splice(itemLength, 1);
}
itemLength--;