fix children
This commit is contained in:
parent
d08a6fa796
commit
3f91f8672d
@ -88,7 +88,7 @@ impl FutureMoves {
|
||||
// SAFETY! `parents` will always be at index `depth` which will always be within range (0..self.inner.len())
|
||||
let parents = unsafe { parents.last_mut().unwrap_unchecked() };
|
||||
|
||||
let children = children.first_mut().map(|x| x.as_slice()).unwrap_or(&[]);
|
||||
let children = children.first().map(Vec::as_slice).unwrap_or(&[]);
|
||||
|
||||
parents.iter_mut().for_each(|mv| {
|
||||
let self_value = mv.compute_self_value(self.color, depth + 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user