From ff1e732af020ca7d15395a4570b7db397fac9b5d Mon Sep 17 00:00:00 2001 From: VitorA29 Date: Thu, 17 Aug 2023 18:00:08 -0300 Subject: [PATCH] merge {RobotLazerShark:main}: Fix for SebLague#350 --- Chess-Challenge/src/Framework/Chess/Board/Board.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Chess-Challenge/src/Framework/Chess/Board/Board.cs b/Chess-Challenge/src/Framework/Chess/Board/Board.cs index 9fd4c1f3b..4677eded3 100644 --- a/Chess-Challenge/src/Framework/Chess/Board/Board.cs +++ b/Chess-Challenge/src/Framework/Chess/Board/Board.cs @@ -404,8 +404,7 @@ public void MakeNullMove() currentGameState = newState; gameStateHistory.Push(currentGameState); UpdateSliderBitboards(); - hasCachedInCheckValue = true; - cachedInCheckValue = false; + hasCachedInCheckValue = false; } public void UnmakeNullMove() @@ -416,8 +415,7 @@ public void UnmakeNullMove() gameStateHistory.Pop(); currentGameState = gameStateHistory.Peek(); UpdateSliderBitboards(); - hasCachedInCheckValue = true; - cachedInCheckValue = false; + hasCachedInCheckValue = false; }