diff --git a/Chess-Challenge/src/Framework/Chess/Board/Board.cs b/Chess-Challenge/src/Framework/Chess/Board/Board.cs index 528d60475..5cce013f6 100644 --- a/Chess-Challenge/src/Framework/Chess/Board/Board.cs +++ b/Chess-Challenge/src/Framework/Chess/Board/Board.cs @@ -400,8 +400,7 @@ public void MakeNullMove() currentGameState = newState; gameStateHistory.Push(currentGameState); UpdateSliderBitboards(); - hasCachedInCheckValue = true; - cachedInCheckValue = false; + hasCachedInCheckValue = false; } public void UnmakeNullMove() @@ -412,8 +411,7 @@ public void UnmakeNullMove() gameStateHistory.Pop(); currentGameState = gameStateHistory.Peek(); UpdateSliderBitboards(); - hasCachedInCheckValue = true; - cachedInCheckValue = false; + hasCachedInCheckValue = false; }