summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-02-20 11:20:27 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-02-20 11:20:27 -0500
commit1eb4981acbba0c09516a06816c52d7688f304846 (patch)
tree1b7a72d767e8fb9529d9913b07075d6bfc745748
parent3cd1a5f3e49daa3a66f44878f40c0a7bab8480f3 (diff)
Fix exception in debug build when selecting machine category filter
-rw-r--r--src/frontend/mame/ui/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/ui/utils.cpp b/src/frontend/mame/ui/utils.cpp
index 95e76944d61..ab1f3ae481e 100644
--- a/src/frontend/mame/ui/utils.cpp
+++ b/src/frontend/mame/ui/utils.cpp
@@ -906,7 +906,7 @@ public:
if (m_include_clones)
{
int const found(driver_list::find(system.driver->parent));
- return m_cache.end() != m_cache.find(&driver_list::driver(found));
+ return found >= 0 && m_cache.end() != m_cache.find(&driver_list::driver(found));
}
return false;