diff options
Diffstat (limited to 'scripts/toy/play.groovy')
-rw-r--r-- | scripts/toy/play.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy/play.groovy b/scripts/toy/play.groovy index c4e86a0..5635f22 100644 --- a/scripts/toy/play.groovy +++ b/scripts/toy/play.groovy @@ -102,7 +102,7 @@ } final sessions = DOMME.sessions.findAll { s -> eval(s.require ?: true) }; final probabilities = sessions.withIndex().collect { s, idx -> [idx] * s.probability }.sum(); - final session = sessions[probabilities[getRandom(probabilities.size)]]; + final session = sessions[probabilities[getRandom(probabilities.size())]]; // Change if required dress(session.phases .collect { phase -> phase.activities + phase.intervals } |