X-Git-Url: http://winboard.nl/cgi-bin?p=bonanza.git;a=blobdiff_plain;f=unmake.c;h=164a626a22b43ab0d90e0b4284c95dc2dd9c244a;hp=91e363d75f5dc78f1c3c3160d9670261f178dda6;hb=cygwin;hpb=18b507e1b20fc6c32ee50f00fb910a59110c1a1d diff --git a/unmake.c b/unmake.c index 91e363d..164a626 100644 --- a/unmake.c +++ b/unmake.c @@ -18,12 +18,12 @@ BOARD[from] = piece -void +void CONV unmake_move_b( tree_t * restrict ptree, unsigned int move, int ply ) { int from = (int)I2From(move); int to = (int)I2To(move); - int nrep = root_nrep + ply - 1; + int nrep = ptree->nrep + ply - 1; HASH_KEY = ptree->rep_board_list[nrep]; MATERIAL = ptree->save_material[ply]; @@ -169,12 +169,12 @@ unmake_move_b( tree_t * restrict ptree, unsigned int move, int ply ) } -void +void CONV unmake_move_w( tree_t * restrict ptree, unsigned int move, int ply ) { int from = (int)I2From(move); int to = (int)I2To(move); - int nrep = root_nrep + ply - 1; + int nrep = ptree->nrep + ply - 1; HASH_KEY = ptree->rep_board_list[nrep]; MATERIAL = ptree->save_material[ply];