2
0
Эх сурвалжийг харах

fill the array with 0 on JS (#250)

R32 8 жил өмнө
parent
commit
c92ab0fdb6
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  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() {