mirror of
https://github.com/holub/mame
synced 2025-04-24 01:11:11 +03:00
emumem.cpp: fix regression in save states (nw)
This commit is contained in:
parent
d7ef4e6c49
commit
7c6a527e26
@ -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 ®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
|
||||
|
Loading…
Reference in New Issue
Block a user