浏览代码

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() {