bugfix | bench 4118297
This commit is contained in:
1 parent
41fed91fc2
commit
ed0782d349
1 file changed
+1
-1
+1
-1
@@ -34,7 +34,7 @@ Move parseMove(Board &board, std::string_view str) {
|
||||
|
||||
// Promotion
|
||||
if (str.length() > 4) {
|
||||
if (board.GetPieceColor(from) != board.GetPieceColor(to)) {
|
||||
if (board.occupied.IsSet(to)) {
|
||||
switch(str[4]) {
|
||||
case 'r':
|
||||
flag = rookPromoCapture;
|
||||
|
||||
Reference in new issue
Block a user