Update inventory.rs

added a single comment
This commit is contained in:
Edward Stuckey 2023-11-11 15:11:10 -05:00
parent c35663e6bf
commit 847c304a33
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ impl GameEntity<(&mut Context, &mut Player, &mut Inventory, &mut HUD)> for Inven
}
}
// we should not move from the weapon row if there are no items
if (player.controller.trigger_up() || player.controller.trigger_down()) && self.item_count > 0 {
self.focus = InventoryFocus::Items;
state.control_flags.set_ok_button_disabled(false);