Fixed intersecting memory region detection bug

This commit is contained in:
Nav
2023-07-18 21:56:41 +01:00
parent 614255c850
commit 36ed2e9cb4

View File

@@ -49,7 +49,7 @@ namespace Bloom::Targets
[[nodiscard]] bool intersectsWith(const TargetMemoryAddressRange& other) const {
return
(other.startAddress <= this->startAddress && other.endAddress >= this->startAddress)
|| (other.endAddress >= this->endAddress && other.startAddress <= this->endAddress)
|| (other.startAddress >= this->startAddress && other.startAddress <= this->endAddress)
;
}