summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2016-08-29 15:46:10 +0200
committerGravatarGravatar GitHub <noreply@github.com>2016-08-29 15:46:10 +0200
commit7c6a527e2630f9317e2941ea991e8d7df1282544 (patch)
treef0bc8dedc99ad149849d5795a6399791472fec3e
parentd7ef4e6c49405de41959ec3f28d38b659feb0afb (diff)
emumem.cpp: fix regression in save states (nw)
-rw-r--r--src/emu/emumem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/emumem.cpp b/src/emu/emumem.cpp
index 243adbc3aea..8ac780cb598 100644
--- a/src/emu/emumem.cpp
+++ b/src/emu/emumem.cpp
@@ -1672,7 +1672,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 &region : 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