From 1462e66b5a32deb394d7a586fe468d9edb18c969 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 21 Dec 2018 16:11:05 +0000 Subject: Fix use of collection.take in playTake --- scripts/toy.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/toy.groovy') diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 3e1334d..ea85504 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1043,8 +1043,7 @@ def sessionPlay = { }; def playTake = { amount, activities, use = null -> Collections.shuffle(activities); - activities.take(amount); - activities.each { + activities.take(amount).each { if (!sessionAborted) { apply(it, use); } -- cgit v1.2.3