mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
Fix fencepost in memory_manager::region_containing, which caused regions to be registered for state saving. [smf]
This commit is contained in:
parent
29a4d213f6
commit
8ebd748b1b
@ -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 ®ion : m_regionlist)
|
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();
|
return region.second.get();
|
||||||
|
|
||||||
// didn't find one
|
// didn't find one
|
||||||
|
Loading…
Reference in New Issue
Block a user