summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-11-26 14:40:42 -0500
committer AJR <ajrhacker@users.noreply.github.com>2018-11-26 14:41:22 -0500
commitaa0d17757d9e5857bb99887841133045cc530655 (patch)
treeccca03fe2449b8ae026ef86aa6417229d0c72324
parent63bbb5608b0ab8a5e1103b0e14b1ff86f6619b3e (diff)
diemory: Still should be validating all configured address spaces, whether or not they have external maps (nw)
-rw-r--r--src/emu/dimemory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/emu/dimemory.cpp b/src/emu/dimemory.cpp
index d95b650b8ea..77e7150f148 100644
--- a/src/emu/dimemory.cpp
+++ b/src/emu/dimemory.cpp
@@ -94,7 +94,8 @@ void device_memory_interface::interface_config_complete()
void device_memory_interface::interface_validity_check(validity_checker &valid) const
{
// loop over all address spaces
- for (int spacenum = 0; spacenum < int(m_address_map.size()); ++spacenum)
+ const int max_spaces = std::max(m_address_map.size(), m_address_config.size());
+ for (int spacenum = 0; spacenum < max_spaces; ++spacenum)
{
if (space_config(spacenum))
{