浏览代码

Lua : Update Lib.tableToArray call

Justin Donaldson 9 年之前
父节点
当前提交
f2b00ddc96
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      std/lua/Lib.hx

+ 1 - 1
std/lua/Lib.hx

@@ -36,7 +36,7 @@ class Lib {
 	}
 
 	public inline static function tableToArray<T>(t:Table<Int,T>, ?length:Int) : Array<T> {
-		return Boot.tableToArray(t, length);
+		return Boot.defArray(t, length);
 	}
 
 	public inline static function tableToObject<T>(t:Table<String,T>) : Dynamic<T> {