default ar to od if missing

This commit is contained in:
MaxOhn
2022-04-15 07:50:15 +02:00
parent 570e9c7f67
commit dc07a21844
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
## Upcoming
- Nothing as of now
- __Fixes:__
- Handle missing approach rate properly this time
# v0.5.1 (2022-03-21)
+1 -1
View File
@@ -218,7 +218,7 @@ macro_rules! parse_difficulty_body {
$self.od = od.unwrap_or(DEFAULT_DIFFICULTY);
$self.cs = cs.unwrap_or(DEFAULT_DIFFICULTY);
$self.hp = hp.unwrap_or(DEFAULT_DIFFICULTY);
$self.ar = ar.unwrap_or(DEFAULT_DIFFICULTY);
$self.ar = ar.unwrap_or($self.od);
$self.slider_mult = sv.next_field("sv")?;
$self.tick_rate = tick_rate.next_field("tick rate")?;