1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
y5nw 2025-06-01 11:21:58 +02:00 committed by y5nw
parent 8d5657d257
commit eb5ff5d0df

View file

@ -335,7 +335,7 @@ bool TouchControls::mayAddButton(touch_gui_button_id id)
assert(ButtonLayout::isButtonValid(id));
assert(ButtonLayout::isButtonAllowed(id));
// The overflow button doesn't need a keycode to be valid.
return id == overflow_id || id_to_action(id) >= KeyType::INTERNAL_ENUM_COUNT;
return id == overflow_id || id_to_action(id) < KeyType::INTERNAL_ENUM_COUNT;
}
void TouchControls::addButton(std::vector<button_info> &buttons, touch_gui_button_id id,