From 769f0521ef0bedbee6690d9af48a340a426e5d9e Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Mon, 17 Dec 2018 14:13:39 -0700 Subject: [PATCH] Fix iteration loop variable, see https://github.com/phetsims/fractions-common/issues/32 --- js/game/model/FractionChallenge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/game/model/FractionChallenge.js b/js/game/model/FractionChallenge.js index b670e98..e7d0a18 100644 --- a/js/game/model/FractionChallenge.js +++ b/js/game/model/FractionChallenge.js @@ -561,8 +561,8 @@ define( require => { const possibilities = fractionPossibilities[ i ]; - for ( let i = 0; i < possibilities.length; i++ ) { - const possibility = possibilities[ i ]; + for ( let j = 0; j < possibilities.length; j++ ) { + const possibility = possibilities[ j ]; if ( currentCollection.contains( possibility.total ) ) { currentCollection = currentCollection.minus( possibility.total );