From 569da2b3f3e15b11be8f67ea4f81aaab4dc58049 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 9 Apr 2020 14:30:42 +0200 Subject: properly substitute items --- src/room.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/room.rs') diff --git a/src/room.rs b/src/room.rs index 0bb2f61..94d5f00 100644 --- a/src/room.rs +++ b/src/room.rs @@ -249,8 +249,7 @@ impl <'a, 'b>Room<'a, 'b> { inventory.items.iter().map(|entry| (entry.itemid.clone(), entry.is_equipped)).collect(), inventory.capacity, health.health, - health.maxhealth, - HashMap::new() + health.maxhealth )) } -- cgit