From 26547be5ed98f76bff51f339e6e8daa3d649cd38 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Wed, 26 Oct 2016 23:05:14 +0200 Subject: [PATCH] Try to prevent another crash --- input/drivers/dinput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/input/drivers/dinput.c b/input/drivers/dinput.c index 3537502ad6..88d9922795 100644 --- a/input/drivers/dinput.c +++ b/input/drivers/dinput.c @@ -493,7 +493,8 @@ static int16_t dinput_input_state(void *data, return dinput_keyboard_pressed(di, id); case RETRO_DEVICE_ANALOG: - ret = dinput_pressed_analog(di, binds[port], idx, id); + if (binds[port]) + ret = dinput_pressed_analog(di, binds[port], idx, id); if (!ret && binds[port]) ret = input_joypad_analog(di->joypad, port, idx, id, settings->input.binds[port]);