mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
nother horrible bug fix
This commit is contained in:
@@ -75,7 +75,7 @@ MouseAction* Mouse::getEvent()
|
||||
|
||||
Mouse::ButtonState Mouse::getButtonState(ButtonType btn)
|
||||
{
|
||||
if (btn <= ButtonType::MIN || btn > ButtonType::COUNT)
|
||||
if (btn < ButtonType::MIN || btn >= ButtonType::COUNT)
|
||||
return ButtonState::UP;
|
||||
|
||||
return _buttonStates[btn];
|
||||
|
||||
Reference in New Issue
Block a user