From 4ddc5a9912a51dacebb04e4c4381f6bb5dd91255 Mon Sep 17 00:00:00 2001 From: Themaister Date: Wed, 9 May 2012 23:24:50 +0200 Subject: [PATCH] Fix strange bug where binds in player 2 would carry over to player 1. --- driver.h | 3 ++- settings.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/driver.h b/driver.h index 236fccce4c..0666597ba0 100644 --- a/driver.h +++ b/driver.h @@ -63,7 +63,8 @@ enum RARCH_SRAM_WRITE_PROTECT, #endif - RARCH_BIND_LIST_END + RARCH_BIND_LIST_END, + RARCH_BIND_LIST_END_NULL }; struct snes_keybind diff --git a/settings.c b/settings.c index 3aa62808a4..84d352e028 100644 --- a/settings.c +++ b/settings.c @@ -525,7 +525,7 @@ struct bind_map } // Big and nasty bind map... :) -static const struct bind_map bind_maps[MAX_PLAYERS][RARCH_BIND_LIST_END] = { +static const struct bind_map bind_maps[MAX_PLAYERS][RARCH_BIND_LIST_END_NULL] = { { DECLARE_BIND(player1_b, RETRO_DEVICE_ID_JOYPAD_B), DECLARE_BIND(player1_y, RETRO_DEVICE_ID_JOYPAD_Y),