mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-28 21:42:53 +00:00
fix: hotbarSlot bounds check
This commit is contained in:
parent
9752dec5e7
commit
304c591512
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue