]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Use CheckInfo to generate checks
[stockfish] / src / position.cpp
index 98f49c756fe989cee80a1d553889e84dd476aa7c..1c9663000e011af6df038d459a1bdb96337a25fa 100644 (file)
@@ -79,7 +79,7 @@ namespace {
 CheckInfo::CheckInfo(const Position& pos) {
 
   Color them = flip(pos.side_to_move());
-  Square ksq = pos.king_square(them);
+  ksq = pos.king_square(them);
 
   pinned = pos.pinned_pieces();
   dcCandidates = pos.discovered_check_candidates();