Browse Source

locate with subtype

Nicolas Cannasse 6 years ago
parent
commit
1b6287b2df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      other/memory/Memory.hx

+ 1 - 1
other/memory/Memory.hx

@@ -574,7 +574,7 @@ class Memory {
 
 
 		var ctx = new Stats(this);
 		var ctx = new Stats(this);
 		for( b in blocks )
 		for( b in blocks )
-			if( b.type == lt ) {
+			if( b.type != null && b.type.match(lt) ) {
 				var tl = [];
 				var tl = [];
 				var owner = b.owner;
 				var owner = b.owner;
 				if( owner != null ) {
 				if( owner != null ) {