diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 89d1c9e..0e5ef61 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -494,7 +494,7 @@ impl CharacterInventory { self.items.push(new_stacked_item); if let Some(InventoryItem::Stacked(new_item)) = self.items.last() { - Some((new_item, InventorySlot(self.count()))) + Some((new_item, InventorySlot(self.count()-1))) } else { None