fix typo option/options - fixes https://github.com/HabitRPG/habitrpg-shared/issues/293
This commit is contained in:
committed by
Tyler Renelle
parent
d5c8045ecf
commit
3c8ebf96d7
+1
-1
@@ -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)]
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user