Use pointers instead of array indices also for badCaptures

To have uniformity with moves array handling.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-08-31 12:33:44 +02:00
parent 97dd7568ed
commit c9d364f9ca
2 changed files with 8 additions and 7 deletions

View File

@@ -80,9 +80,9 @@ private:
const History& H;
MoveStack ttMoves[2], killers[2];
bool finished;
int numOfBadCaptures, phase;
int phase;
const MovegenPhaseT* phasePtr;
MoveStack *curMove, *lastMove;
MoveStack *curMove, *lastMove, *lastBadCapture;
Bitboard dc, pinned;
MoveStack moves[256], badCaptures[64];
};