major bugfix in null moving | bench 4120864

This commit is contained in:
rektdie committed 2025-03-13 10:21:31 +01:00
1 parent 41fed91fc2
commit 96bf73a263
1 file changed
+1 -4
+1 -4
View File
@@ -6,8 +6,6 @@
#include <string_view>
#include "utils.h"
static inline int prevEPTarget = noEPTarget;
void Board::Init() {
SetByFen(StartingFen);
}
@@ -225,8 +223,7 @@ void Board::MakeMove(Move move) {
// Null Move
if (!move) {
int newEpTarget = prevEPTarget;
prevEPTarget = enPassantTarget;
int newEpTarget = noEPTarget;
sideToMove = !sideToMove;
hashKey ^= zSide;