Jelajahi Sumber

fill the array with 0 on JS (#250)

R32 8 tahun lalu
induk
melakukan
c92ab0fdb6
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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() {