Skip to content

Commit

Permalink
merge {RobotLazerShark:main}: Fix for SebLague#350
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorA29 committed Aug 17, 2023
1 parent 4a8f22b commit ff1e732
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Chess-Challenge/src/Framework/Chess/Board/Board.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@ public void MakeNullMove()
currentGameState = newState;
gameStateHistory.Push(currentGameState);
UpdateSliderBitboards();
hasCachedInCheckValue = true;
cachedInCheckValue = false;
hasCachedInCheckValue = false;
}

public void UnmakeNullMove()
Expand All @@ -416,8 +415,7 @@ public void UnmakeNullMove()
gameStateHistory.Pop();
currentGameState = gameStateHistory.Peek();
UpdateSliderBitboards();
hasCachedInCheckValue = true;
cachedInCheckValue = false;
hasCachedInCheckValue = false;
}


Expand Down

0 comments on commit ff1e732

Please sign in to comment.