diff options
author | 2016-07-21 06:40:07 -0400 | |
---|---|---|
committer | 2016-07-21 06:40:07 -0400 | |
commit | 7e729626ce3c4d428c3eab1663ccbdb65e1136ff (patch) | |
tree | 386e4092fafc3898604e73ba840bacece9abf7b8 /src/emu/softlist.cpp | |
parent | a1e4e906198801d8cbd94d47888a5cb0fefedfcb (diff) |
Incorporating Vas Crabb feedback
Diffstat (limited to 'src/emu/softlist.cpp')
-rw-r--r-- | src/emu/softlist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/softlist.cpp b/src/emu/softlist.cpp index bec479a52ad..62e6feeecaa 100644 --- a/src/emu/softlist.cpp +++ b/src/emu/softlist.cpp @@ -402,8 +402,8 @@ void software_list_device::find_approx_matches(const char *name, int matches, co // iterate over our info (will cause a parse if needed) for (const software_info &swinfo : get_info()) { - const software_part *part = &swinfo.parts().front(); - if ((interface == nullptr || part->matches_interface(interface)) && part->is_compatible(*this) == SOFTWARE_IS_COMPATIBLE) + const software_part &part = swinfo.parts().front(); + if ((interface == nullptr || part.matches_interface(interface)) && part.is_compatible(*this) == SOFTWARE_IS_COMPATIBLE) { // pick the best match between driver name and description int longpenalty = driver_list::penalty_compare(name, swinfo.longname().c_str()); |