Commits

Anonymous committed b818a39

bugfix for combining moves at end of phase 1 and beginning of phase 2

  • Participants
  • Parent commits dfe12fc

Comments (0)

Files changed (1)

stand_alone/solve.c

 
 		// if the last move from phase 1 and first move from phase 2 are on the same face
 		// it will always be a quarter turn then half turn on FBLR
-		if (sol[30 - i] > -1 && sol[30 - i] / 6 == sol[11] / 6) {
+		if (sol[11] > -1 && sol[30 - i] > -1 && sol[30 - i] / 6 == sol[11] / 6) {
 			sol[30 - i] = -1;
 			sol[11] += (sol[11] % 3) ? -2 : 2;
 		}