Переглянути джерело

[lua] temporary workaround for #5327

Dan Korostelev 8 роки тому
батько
коміт
0fc630dbdc
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      std/lua/_std/Array.hx

+ 3 - 2
std/lua/_std/Array.hx

@@ -44,8 +44,9 @@ class Array<T> {
 		return this.length == 0 ? null : this[this.length-- -1];
 	}
 	public function push(x : T) : Int {
-		this[this.length++] = x;
-		return this.length;
+		this[length] = x;
+		length++;
+		return length;
 	}
 	public function reverse() : Void {
 		var tmp:T;