]> git.sesse.net Git - stockfish/blobdiff - src/main.cpp
Merge remote-tracking branch 'upstream/master'
[stockfish] / src / main.cpp
index 435e436c3fe7a39e7ebd51b411b5676d6245dcfe..557c8c2789b77fb8b830801ae030ffe0582f2bf1 100644 (file)
@@ -1,6 +1,6 @@
 /*
   Stockfish, a UCI chess playing engine derived from Glaurung 2.1
-  Copyright (C) 2004-2022 The Stockfish developers (see AUTHORS file)
+  Copyright (C) 2004-2023 The Stockfish developers (see AUTHORS file)
 
   Stockfish is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -113,7 +113,7 @@ void HashProbeImpl::FillMove(Position *pos, Move move, HashProbeMove* decoded) {
                                Square s = pop_lsb(att_copy);
                                Move m = make_move(s, to);
                                if (!pos->pseudo_legal(m) || !pos->legal(m)) {
-                                       attackers &= ~SquareBB[s];
+                                       attackers &= ~square_bb(s);
                                }
                        }
                }