Nicolas Cannasse 19 years ago
parent
commit
a1230b0f70
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/List.hx

+ 2 - 2
std/List.hx

@@ -54,8 +54,8 @@ class List<T> {
 			[item,q]
 		#end;
 		h = x;
-		if( h == null )
-			q = h;
+		if( q == null )
+			q = x;
 		length++;
 	}