1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Fix a warning with MSVC

warning C4706: assignment within conditional expression

No functional change.
This commit is contained in:
Marco Costalba 2016-09-17 10:13:38 +02:00
parent ea41f18e6e
commit 92f01aa2bd

View file

@ -506,7 +506,7 @@ void Thread::search() {
if ( rootMoves.size() == 1
|| Time.elapsed() > Time.optimum() * unstablePvFactor * improvingFactor / 628
|| (mainThread->easyMovePlayed = doEasyMove))
|| (mainThread->easyMovePlayed = doEasyMove, doEasyMove))
{
// If we are allowed to ponder do not stop the search now but
// keep pondering until the GUI sends "ponderhit" or "stop".