mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Fix an MSVC 2017 error and warnings.
Improved version by @mcostalba. No functional change.
This commit is contained in:
committed by
Stéphane Nicolet
parent
96362fe3df
commit
350dff4464
@@ -417,7 +417,8 @@ namespace {
|
||||
// Main king safety evaluation
|
||||
if (kingAttackersCount[Them] > 1 - pos.count<QUEEN>(Them))
|
||||
{
|
||||
int kingDanger = unsafeChecks = 0;
|
||||
int kingDanger = 0;
|
||||
unsafeChecks = 0;
|
||||
|
||||
// Attacked squares defended at most once by our queen or king
|
||||
weak = attackedBy[Them][ALL_PIECES]
|
||||
|
||||
Reference in New Issue
Block a user