mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-11-04 06:47:09 +00:00 
			
		
		
		
	Fix SearchBlock.
This commit is contained in:
		@@ -16,9 +16,9 @@ size_t Function::SearchBlock(size_t address) const
 | 
			
		||||
    {
 | 
			
		||||
        const auto& block = blocks[i];
 | 
			
		||||
        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;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user