This commit is contained in:
Simon Gardling 2025-04-24 13:20:07 -04:00
parent 14254e44ba
commit 2586b43294
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -86,10 +86,12 @@ impl Ord for MoveValueStats {
}
let (s_cw, o_cw) = (self.chance_win(), other.chance_win());
if s_cw > o_cw {
return Ordering::Greater;
} else if o_cw > s_cw {
return Ordering::Less;
if s_cw.is_some() | o_cw.is_some() {
if s_cw > o_cw {
return Ordering::Greater;
} else if o_cw > s_cw {
return Ordering::Less;
}
}
self.value.cmp(&other.value)