From 5371e1b641d9cad2c1f3d6eee5ca2ae43346878b Mon Sep 17 00:00:00 2001 From: Leonardo Date: Sat, 30 Nov 2024 10:50:21 +0100 Subject: [PATCH] Fix filtering another memory dump from memory tool (#728) --- other/haxelib/hlmem/Memory.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/other/haxelib/hlmem/Memory.hx b/other/haxelib/hlmem/Memory.hx index f555677ac..f9dc87352 100644 --- a/other/haxelib/hlmem/Memory.hx +++ b/other/haxelib/hlmem/Memory.hx @@ -940,12 +940,14 @@ class Memory { return false; case Intersect: for( m in otherMems ) { - if( m.pointerBlock.get(b.addr ) == null ) + var b2 = m.pointerBlock.get(b.addr); + if( b2 == null || b2.typePtr != b.typePtr || b2.size != b.size) return true; } case Unique: for( m in otherMems ) { - if( m.pointerBlock.get(b.addr ) != null ) + var b2 = m.pointerBlock.get(b.addr); + if( b2 != null && b2.typePtr == b.typePtr && b2.size == b.size ) return true; } }