diff options
author | 2016-02-24 23:28:16 +0100 | |
---|---|---|
committer | 2016-02-24 23:28:16 +0100 | |
commit | bc2a4317caf8f416cb8a5de7b8d92f4464636d7e (patch) | |
tree | f553c26825bbafa1072d691f97041e83523e5648 /src/emu/ui/selsoft.cpp | |
parent | 24ced366776e255f11fb4cc7e93c602f87d60356 (diff) |
selsoft: fixed search for software list. (nw)
Diffstat (limited to 'src/emu/ui/selsoft.cpp')
-rw-r--r-- | src/emu/ui/selsoft.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/ui/selsoft.cpp b/src/emu/ui/selsoft.cpp index ad374bb9b83..4cc43bbdb39 100644 --- a/src/emu/ui/selsoft.cpp +++ b/src/emu/ui/selsoft.cpp @@ -318,7 +318,6 @@ void ui_menu_select_software::handle() if (check_filter) { m_search[0] = '\0'; - switch (l_sw_hover) { case UI_SW_REGION: @@ -1184,7 +1183,7 @@ void ui_menu_select_software::find_matches(const char *str, int count) std::vector<int> penalty(count, 9999); int index = 0; - for (; m_displaylist[index]; ++index) + for (; index < m_displaylist.size(); ++index) { // pick the best match between driver name and description int curpenalty = fuzzy_substring(str, m_displaylist[index]->longname); |