fix off by one error
This commit is contained in:
parent
b2430ce3d4
commit
23613194a7
@ -108,6 +108,6 @@ impl PlayerInventory {
|
||||
|
||||
pub fn held_item(&self) -> Option<&Item> {
|
||||
debug_assert!((0..9).contains(&self.selected));
|
||||
self.items[self.selected+36-8].as_ref()
|
||||
self.items[self.selected+36-9].as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user