Fix strange bug where binds in player 2 would carry over to player 1.

This commit is contained in:
Themaister 2012-05-09 23:24:50 +02:00
parent 4debf60bad
commit 4ddc5a9912
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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),