MovePicker, remove a variable
authorMarco Costalba <mcostalba@gmail.com>
Sun, 25 Jan 2009 12:52:35 +0000 (13:52 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 25 Jan 2009 12:52:35 +0000 (13:52 +0100)
No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/movepick.cpp
src/movepick.h

index 20aaabbdde0288a28743ea230706dc2905cc281f..eb57f78a9cf1eb5b09e3f76926465291d4913477 100644 (file)
@@ -151,7 +151,7 @@ Move MovePicker::get_next_move() {
         break;
 
     case PH_BAD_CAPTURES:
-        badCapturesPicked = 0;
+        movesPicked = 0;
         break;
 
     case PH_NONCAPTURES:
@@ -434,12 +434,12 @@ Move MovePicker::pick_move_from_list() {
 
   case PH_BAD_CAPTURES:
       assert(!pos.is_check());
-      assert(badCapturesPicked >= 0);
+      assert(movesPicked >= 0);
       // It's probably a good idea to use SEE move ordering here, instead
       // of just picking the first move.  FIXME
-      while (badCapturesPicked < numOfBadCaptures)
+      while (movesPicked < numOfBadCaptures)
       {
-          move = badCaptures[badCapturesPicked++].move;
+          move = badCaptures[movesPicked++].move;
           if (   move != ttMove
               && move != mateKiller
               && pos.pl_move_is_legal(move, pinned))
index fd1ee890f7f8646eb06b6165c6e9645940068a4a..2c861c71db873377800dca30e2e3d82096739dd2 100644 (file)
@@ -90,7 +90,7 @@ private:
   Depth depth;
   int phaseIndex;
   int numOfMoves, numOfBadCaptures;
-  int movesPicked, badCapturesPicked;
+  int movesPicked;
   bool finished;
 };