diff options
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/boon.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/statistics/boon.rs b/src/statistics/boon.rs index 8175537..e1cf58e 100644 --- a/src/statistics/boon.rs +++ b/src/statistics/boon.rs @@ -276,7 +276,11 @@ impl BoonLog { /// * `x` - Time point. /// * `boon_id` - ID of the boon that you want to get. pub fn stacks_at(&self, x: u64, boon_id: u16) -> u32 { - self.inner.get(&boon_id).map(|f| f.get(&x)).unwrap_or(0) + self.inner + .get(&boon_id) + .map(|f| f.get(&x)) + .unwrap_or(Stacks(0)) + .0 as u32 } } |