From 797795cc3a05fd23754400e545351eb998761078 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 14 Jun 2018 15:58:13 +0200 Subject: fix type error --- src/statistics/boon.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/statistics') 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 } } -- cgit v1.2.3