Fix fencepost in memory_manager::region_containing, which caused regions to be registered for state saving. [smf]

This commit is contained in:
smf- 2018-04-07 08:51:27 +01:00
parent 29a4d213f6
commit 8ebd748b1b

View File

@ -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 // look through the region list and return the first match
for (auto &region : m_regionlist) 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(); return region.second.get();
// didn't find one // didn't find one