From e0ed37a13ef412c3e9e09121250b47fb9c70869a Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 20 Sep 2020 16:26:23 +0800 Subject: [PATCH] =?UTF-8?q?position:=20do=5Fmove()=20=E4=B8=AD=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E4=BD=BF=E7=94=A8=20to=5Fsq()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/position.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/position.cpp b/src/position.cpp index aedaa4b6..b03c5eb6 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -402,7 +402,7 @@ void Position::do_move(Move m, StateInfo &newSt) case MOVETYPE_REMOVE: // Reset rule 50 counter st->rule50 = 0; - ret = remove_piece(static_cast(-m)); + ret = remove_piece(to_sq(m)); break; case MOVETYPE_MOVE: ret = move_piece(from_sq(m), to_sq(m));