From 3c8ebf96d7172ace8a21c955bbd3540f6bbf0d7a Mon Sep 17 00:00:00 2001 From: Alice Harris Date: Mon, 1 Sep 2014 15:12:01 +1000 Subject: [PATCH] fix typo option/options - fixes https://github.com/HabitRPG/habitrpg-shared/issues/293 --- script/index.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/index.coffee b/script/index.coffee index 4f56d19d2e..c4cb3ba390 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -984,7 +984,7 @@ api.wrap = (user, main=true) -> ### randomVal: (obj, options) -> array = if options?.key then _.keys(obj) else _.values(obj) - rand = user.fns.predictableRandom(option?.seed) + rand = user.fns.predictableRandom(options?.seed) array[Math.floor(rand * array.length)] ###