emumem.cpp: fix regression in save states (nw)

This commit is contained in:
Ivan Vangelista 2016-08-29 15:46:10 +02:00 committed by GitHub
parent d7ef4e6c49
commit 7c6a527e26

View File

@ -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