From 64040d55a21a08207f0831d01c370b276e2e16fd Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 27 Sep 2020 18:05:23 -0600 Subject: [PATCH] and another! --- src/ship/items/inventory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 0e5ef61..e1519e6 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -452,7 +452,7 @@ impl CharacterInventory { })); if let Some(InventoryItem::Individual(new_item)) = self.items.last() { - Some((new_item, InventorySlot(self.count()))) + Some((new_item, InventorySlot(self.count()-1))) } else { None