Qt: Fix crash on scanning empty directory

This commit is contained in:
Connor McLaughlin
2022-07-22 23:33:59 +10:00
parent 701780e2ef
commit 91fcb56148
6 changed files with 15 additions and 7 deletions

View File

@ -1144,7 +1144,7 @@ void InputManager::LoadMacroButtonConfig(SettingsInterface& si, const std::strin
{
if (button == cinfo->bindings[j].name)
{
binding = &cinfo->bindings[i];
binding = &cinfo->bindings[j];
break;
}
}