fix: hotbarSlot bounds check

This commit is contained in:
Tropical 2026-03-10 20:08:54 -05:00
parent 9752dec5e7
commit 304c591512

View file

@ -3439,7 +3439,7 @@ void Minecraft::tick(bool bFirst, bool bUpdateTextures)
#endif
{
int hotbarSlot = InputManager.GetHotbarSlotPressed(iPad);
if (hotbarSlot >= 0 && hotbarSlot <= 9)
if (hotbarSlot > 0 && hotbarSlot < 10)
{
player->inventory->selected = hotbarSlot;
selected = true;