mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-06-23 16:05:30 +00:00
Fix SearchBlock.
This commit is contained in:
parent
6683059a48
commit
a03c2e89e7
@ -16,9 +16,9 @@ size_t Function::SearchBlock(size_t address) const
|
|||||||
{
|
{
|
||||||
const auto& block = blocks[i];
|
const auto& block = blocks[i];
|
||||||
const auto begin = base + block.base;
|
const auto begin = base + block.base;
|
||||||
const auto end = begin + size;
|
const auto end = begin + block.size;
|
||||||
|
|
||||||
if (address >= begin && address <= end)
|
if (address >= begin && address < end)
|
||||||
{
|
{
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user