en passant bugfix
This commit is contained in:
1 parent
00c3be28ba
commit
bc50eff52d
3 files changed
+27
-21
No files matched your search
+1
-1
@@ -346,7 +346,7 @@ void Board::MakeMove(Move move) {
|
||||
int targetPiece = GetPieceType(move.MoveTo());
|
||||
int direction = attackerColor ? south : north;
|
||||
|
||||
int newEpTarget = -1;
|
||||
int newEpTarget = noEPTarget;
|
||||
|
||||
// Removing attacker piece from old position
|
||||
RemovePiece(attackerPiece, move.MoveFrom(), attackerColor);
|
||||
|
||||
Reference in new issue
Block a user