]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Remove redundant king square parameter
[stockfish] / src / evaluate.cpp
index 97218baa19f9627cb27ce59948c255e18cef0b81..6128b45fcad597e7c2ddad68f2ca4b55364f622d 100644 (file)
@@ -415,7 +415,7 @@ namespace {
     Bitboard kingFlank, weak, b, b1, b2, safe, unsafeChecks;
 
     // King shelter and enemy pawns storm
-    Score score = pe->king_safety<Us>(pos, ksq);
+    Score score = pe->king_safety<Us>(pos);
 
     // Find the squares that opponent attacks in our king flank, and the squares
     // which are attacked twice in that flank but not defended by our pawns.