osu: another underflow prevention

This commit is contained in:
MaxOhn
2021-04-29 15:31:09 +02:00
parent db90c28263
commit 91f4cf7717
+1 -1
View File
@@ -176,7 +176,7 @@ impl<'m> OsuPP<'m> {
let delta = target_total - (n_objects - misses);
let mut n300 = delta / 5;
let mut n100 = delta % 5;
let mut n100 = (delta % 5).min(n_objects - n300 - misses);
let mut n50 = n_objects - n300 - n100 - misses;
// Sacrifice n300s to transform n50s into n100s