From 6110524f78f0a8c406512ec906c5f39972928c19 Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Tue, 6 Jun 2017 07:12:31 +0200 Subject: [PATCH] Fix o.get by calling random.pick instead of the removed random.index --- lib/utils/objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/objects.js b/lib/utils/objects.js index 1ee0d71..8828baa 100644 --- a/lib/utils/objects.js +++ b/lib/utils/objects.js @@ -30,7 +30,7 @@ Objects.prototype.get = function (category, last) { if (last) { return this.container[category].slice(-1)[0] } - return random.index(this.container[category]) + return random.pick(this.container[category]) } Objects.prototype.pick = function (category, last) {