Convert History table H in a local variable

This is a first step for future patches and in
any case seems a nice thing to do.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-06-02 09:57:15 +01:00
parent e1ed67aacb
commit c1b60269a2
5 changed files with 14 additions and 12 deletions

View File

@@ -28,6 +28,7 @@
#include <string>
#include <sstream>
#include "history.h"
#include "movepick.h"
#include "san.h"
@@ -143,7 +144,7 @@ Move move_from_san(const Position& pos, const string& movestr) {
assert(pos.is_ok());
MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly);
MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, History());
// Castling moves
if (movestr == "O-O-O" || movestr == "O-O-O+")
@@ -367,7 +368,7 @@ namespace {
if (type_of_piece(pc) == KING)
return AMBIGUITY_NONE;
MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly);
MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, History());
Move mv, moveList[8];
int n = 0;