Skip to content

Commit

Permalink
Fixing Solver
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenko committed Feb 10, 2014
1 parent 40f8a38 commit 53bf9c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BeachBall.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ BeachBall.PuzzleConstructor = function(name) {

//Returns the index of a given statement name
this.FindStatement = function (searchTerm) {
for (var i in this.statement) {
if (this.statement[i].name == searchTerm) return i;
for (var i = 0; i < this.statement.length; i++) {
if (this.statement[i].name == searchTerm)
{
return i;
}
}
}

Expand Down

0 comments on commit 53bf9c1

Please sign in to comment.