فهرست منبع

fill the array with 0 on JS (#250)

R32 8 سال پیش
والد
کامیت
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() {