diff options
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}} ); |
