Skip to content

Commit ff1e732

Browse files
committed
merge {RobotLazerShark:main}: Fix for SebLague#350
1 parent 4a8f22b commit ff1e732

File tree

1 file changed

+2
-4
lines changed
  • Chess-Challenge/src/Framework/Chess/Board

1 file changed

+2
-4
lines changed

Chess-Challenge/src/Framework/Chess/Board/Board.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ public void MakeNullMove()
404404
currentGameState = newState;
405405
gameStateHistory.Push(currentGameState);
406406
UpdateSliderBitboards();
407-
hasCachedInCheckValue = true;
408-
cachedInCheckValue = false;
407+
hasCachedInCheckValue = false;
409408
}
410409

411410
public void UnmakeNullMove()
@@ -416,8 +415,7 @@ public void UnmakeNullMove()
416415
gameStateHistory.Pop();
417416
currentGameState = gameStateHistory.Peek();
418417
UpdateSliderBitboards();
419-
hasCachedInCheckValue = true;
420-
cachedInCheckValue = false;
418+
hasCachedInCheckValue = false;
421419
}
422420

423421

0 commit comments

Comments
 (0)