Skip to content

Commit cb321ca

Browse files
committed
Check if PV line is empty
1 parent f626753 commit cb321ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ impl Iterator for SearchContext {
519519
}
520520
}
521521

522-
if self.multipv_lines.is_empty() {
522+
if self.multipv_lines.is_empty() || self.multipv_lines[0].pv_line.is_empty() {
523523
println!("info string Invalid position");
524524
return None;
525525
}

0 commit comments

Comments
 (0)