fixed nodestogo check

This commit is contained in:
rektdie committed 2025-04-01 05:45:42 +02:00
1 parent a6459dda00
commit 656d71dd5d
1 file changed
+2 -2
+2 -2
View File
@@ -150,7 +150,7 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) {
}
}
} else {
if (nodes >= nodesToGo) {
if (nodes > nodesToGo) {
StopSearch();
return 0;
}
@@ -219,7 +219,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) {
}
}
} else if constexpr (mode == nodesMode) {
if (nodes >= nodesToGo) {
if (nodes > nodesToGo) {
StopSearch();
return 0;
}