mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
Fix broken save_keybind_hat.
This commit is contained in:
parent
a3ddf8ed26
commit
9c5c7e6292
@ -945,7 +945,7 @@ static void save_keybind_hat(config_file_t *conf, const char *key, const struct
|
||||
unsigned hat = GET_HAT(bind->joykey);
|
||||
const char *dir = NULL;
|
||||
|
||||
switch (GET_HAT_DIR(hat))
|
||||
switch (GET_HAT_DIR(bind->joykey))
|
||||
{
|
||||
case HAT_UP_MASK:
|
||||
dir = "up";
|
||||
@ -964,6 +964,7 @@ static void save_keybind_hat(config_file_t *conf, const char *key, const struct
|
||||
break;
|
||||
|
||||
default:
|
||||
RARCH_ERR("Hat direction is invalid: 0x%x.\n", (unsigned)GET_HAT_DIR(hat));
|
||||
rarch_assert(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user