fix children

This commit is contained in:
Simon Gardling 2025-02-09 03:26:45 -05:00
parent d08a6fa796
commit 3f91f8672d
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -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);