Fix o.get by calling random.pick instead of the removed random.index

This commit is contained in:
Christoph Diehl 2017-06-06 07:12:31 +02:00
parent 3e8c5c82f7
commit 6110524f78
1 changed files with 1 additions and 1 deletions

View File

@ -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) {