diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index 10c58e86d8..fb0180b4b0 100644 --- a/player/command.c +++ b/player/command.c @@ -5848,7 +5848,7 @@ static void cmd_mouse(void *p) mp_input_set_mouse_pos_artificial(mpctx->input, x, y); return; } - if (button < 0 || button >= 20) {// invalid button + if (button < 0 || button >= MP_KEY_MOUSE_BTN_COUNT) {// invalid button MP_ERR(mpctx, "%d is not a valid mouse button number.\n", button); cmd->success = false; return; |