From a3c2efcd073d986f17a4a81617acaf68e07447e1 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 27 Jun 2019 12:57:14 +0200 Subject: [PATCH] Update libretro.c --- frontend/libretro.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index 9971a4fd..3689297f 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1791,11 +1791,11 @@ void retro_run(void) ret = input_state_cb(i, RETRO_DEVICE_JOYPAD, 0, RETRO_DEVICE_ID_JOYPAD_MASK); else { - unsigned i; - for (i = 0; i < RETRO_DEVICE_ID_JOYPAD_R3+1; i++) + unsigned j; + for (j = 0; j < (RETRO_DEVICE_ID_JOYPAD_R3+1); j++) { - if (input_state_cb(i, RETRO_DEVICE_JOYPAD, 0, i)) - ret |= (1 << i); + if (input_state_cb(i, RETRO_DEVICE_JOYPAD, 0, j)) + ret |= (1 << j); } } -- 2.39.5