diff --git a/src/ship/items/apply_item.rs b/src/ship/items/apply_item.rs index d73941e..6978f2e 100644 --- a/src/ship/items/apply_item.rs +++ b/src/ship/items/apply_item.rs @@ -12,7 +12,7 @@ use crate::entity::item::tech::TechniqueDisk; use crate::entity::item::{ItemDetail, ItemEntityId}; use crate::entity::item::weapon::WeaponModifier; use crate::ship::items::state::ItemStateProxy; -use crate::ship::items::inventory::{InventoryItem, InventoryItemDetail}; +use crate::ship::items::inventory::InventoryItemDetail; #[derive(Error, Debug)] diff --git a/src/ship/items/bank.rs b/src/ship/items/bank.rs index 4f922af..cf88ae3 100644 --- a/src/ship/items/bank.rs +++ b/src/ship/items/bank.rs @@ -134,7 +134,7 @@ impl BankState { item.item_id = ClientItemId(*bitem_id + i as u32); } - *bitem_id = *bitem_id + self.bank.0.len() as u32; + *bitem_id += self.bank.0.len() as u32; } pub fn add_meseta(&mut self, amount: u32) -> Result<(), anyhow::Error> { diff --git a/src/ship/items/inventory.rs b/src/ship/items/inventory.rs index 19fa372..da131d8 100644 --- a/src/ship/items/inventory.rs +++ b/src/ship/items/inventory.rs @@ -214,7 +214,7 @@ impl InventoryState { item.item_id = ClientItemId(*bitem_id + i as u32); } - *bitem_id = *bitem_id + self.inventory.0.len() as u32; + *bitem_id += self.inventory.0.len() as u32; } pub async fn new_item_id(&mut self) -> ClientItemId {