mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix crash in debug mode
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
c67b9916f1
commit
80810e4951
1 changed files with 3 additions and 1 deletions
|
@ -2819,7 +2819,9 @@ namespace {
|
||||||
assert(p.is_ok());
|
assert(p.is_ok());
|
||||||
assert(sstck != NULL);
|
assert(sstck != NULL);
|
||||||
assert(ply >= 0 && ply < PLY_MAX);
|
assert(ply >= 0 && ply < PLY_MAX);
|
||||||
assert(*bestValue >= -VALUE_INFINITE && *bestValue <= *alpha);
|
assert(*bestValue >= -VALUE_INFINITE);
|
||||||
|
assert( ( pvNode && *bestValue <= *alpha)
|
||||||
|
|| (!pvNode && *bestValue < beta ));
|
||||||
assert(!pvNode || *alpha < beta);
|
assert(!pvNode || *alpha < beta);
|
||||||
assert(beta <= VALUE_INFINITE);
|
assert(beta <= VALUE_INFINITE);
|
||||||
assert(depth > Depth(0));
|
assert(depth > Depth(0));
|
||||||
|
|
Loading…
Add table
Reference in a new issue