From 6d3aa67192ee1185eadba167ff947abca3eeb0c1 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 1 Sep 2014 12:29:09 -0600 Subject: [PATCH] grunt --- dist/habitrpg-shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 874162061a..6db604e4c9 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -14480,7 +14480,7 @@ api.wrap = function(user, main) { randomVal: function(obj, options) { var array, rand; array = (options != null ? options.key : void 0) ? _.keys(obj) : _.values(obj); - rand = user.fns.predictableRandom(typeof option !== "undefined" && option !== null ? option.seed : void 0); + rand = user.fns.predictableRandom(options != null ? options.seed : void 0); return array[Math.floor(rand * array.length)]; },