From f6d1d4ea258490670ee1605c596a6ba9a49a77db Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 10 Feb 2020 11:55:20 +0100 Subject: inventories have capacity --- src/componentwrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') 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}} ); -- cgit