summaryrefslogtreecommitdiff
path: root/src/components.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-10 11:55:20 +0100
committertroido <troido@protonmail.com>2020-02-10 11:55:20 +0100
commitf6d1d4ea258490670ee1605c596a6ba9a49a77db (patch)
treedae5da3c0a5db2630a81999ffc298797082618ac /src/components.rs
parentb0e665f5436e08e4fd7446a59b87ac28f562a601 (diff)
inventories have capacity
Diffstat (limited to 'src/components.rs')
-rw-r--r--src/components.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components.rs b/src/components.rs
index 8be8364..5e1c979 100644
--- a/src/components.rs
+++ b/src/components.rs
@@ -69,7 +69,7 @@ impl Player {
#[derive(Debug, Clone, Default)]
pub struct Inventory {
pub items: Vec<Item>,
- pub capacity: u64
+ pub capacity: usize
}
impl Component for Inventory {
type Storage = FlaggedStorage<Self, HashMapStorage<Self>>;