diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 15:58:13 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 15:58:13 +0200 |
commit | 797795cc3a05fd23754400e545351eb998761078 (patch) | |
tree | 7d96b981a774fe80151baa85e738ea113ab9677c /src/statistics/boon.rs | |
parent | 93efc6051269348a955f79d34ae151560fbcb0d3 (diff) | |
download | evtclib-797795cc3a05fd23754400e545351eb998761078.tar.gz evtclib-797795cc3a05fd23754400e545351eb998761078.tar.bz2 evtclib-797795cc3a05fd23754400e545351eb998761078.zip |
fix type error
Diffstat (limited to 'src/statistics/boon.rs')
-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 } } |