Browse Source

fill the array with 0 on JS (#250)

R32 8 năm trước cách đây
mục cha
commit
c92ab0fdb6
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      hxd/impl/PathFind.hx

+ 3 - 0
hxd/impl/PathFind.hx

@@ -19,6 +19,9 @@ class PathFind {
 		bits = 0;
 		while( width >= 1 << bits )
 			bits++;
+		#if js
+		clear();
+		#end
 	}
 
 	public function clear() {