X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fmenu.c;h=63ba6a0e965fdcfb614254456340d0917c95880c;hb=c9077ab4b91e5c28954cb05e0db20e45e3dd19e4;hp=1a67e43117ed709f2525c31ed9bedd06f76aa7ea;hpb=454992846839316fb3ceea6cd2f84d9b4f66406b;p=picodrive.git diff --git a/platform/gp2x/menu.c b/platform/gp2x/menu.c index 1a67e43..63ba6a0 100644 --- a/platform/gp2x/menu.c +++ b/platform/gp2x/menu.c @@ -739,7 +739,7 @@ static void key_config_loop(const bind_action_t *opts, int opt_cnt, int player_i if (count_bound_keys(opts[sel].mask, player_idx, 0) >= 2) currentConfig.KeyBinds[i] &= ~opts[sel].mask; // allow to unbind only else currentConfig.KeyBinds[i] ^= opts[sel].mask; - if (player_idx >= 0 && currentConfig.KeyBinds[i] & opts[sel].mask) { + if (player_idx >= 0 && (currentConfig.KeyBinds[i] & opts[sel].mask)) { currentConfig.KeyBinds[i] &= ~(3 << 16); currentConfig.KeyBinds[i] |= player_idx << 16; }