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; } }