mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-10-30 07:11:38 +00:00 
			
		
		
		
	Fix SearchBlock.
This commit is contained in:
		
							parent
							
								
									6683059a48
								
							
						
					
					
						commit
						a03c2e89e7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Skyth
						Skyth