diff options
author | smf- <smf-@users.noreply.github.com> | 2018-04-07 08:51:27 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-04-07 08:55:53 +0100 |
commit | 8ebd748b1b842da8cbd4d6d627bd40065bc407f4 (patch) | |
tree | 919bc722cc2d8d9d00c1aee726d802041d774808 | |
parent | 29a4d213f6e64be70f9116070b92e0261ab875b4 (diff) |
Fix fencepost in memory_manager::region_containing, which caused regions to be registered for state saving. [smf]
-rw-r--r-- | src/emu/emumem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp index f2935eecac5..ac8a3ddc319 100644 --- a/src/emu/emumem.cpp +++ b/src/emu/emumem.cpp @@ -1905,7 +1905,7 @@ memory_region *memory_manager::region_containing(const void *memory, offs_t byte // look through the region list and return the first match for (auto ®ion : m_regionlist) - if (data >= region.second->base() && (data + bytes) < region.second->end()) + if (data >= region.second->base() && (data + bytes) <= region.second->end()) return region.second.get(); // didn't find one |