diff options
| author | troido <troido@protonmail.com> | 2020-02-10 11:55:20 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-10 11:55:20 +0100 |
| commit | f6d1d4ea258490670ee1605c596a6ba9a49a77db (patch) | |
| tree | dae5da3c0a5db2630a81999ffc298797082618ac /src/componentwrapper.rs | |
| parent | b0e665f5436e08e4fd7446a59b87ac28f562a601 (diff) | |
inventories have capacity
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index c21d263..bcb750d 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -93,7 +93,7 @@ components!( Floor () {Floor}; Player (name: String) {Player::new(name)}; Item (ent: Template) {Item{ent}}; - Inventory () {Inventory::default()} + Inventory (capacity: Int) {Inventory{items: Vec::new(), capacity: capacity as usize}} ); |
