Browse Source

fixed isEmpty.

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

+ 1 - 1
std/List.hx

@@ -79,7 +79,7 @@ class List<T> {
 	}
 
 	public function isEmpty() : Bool {
-		return (h != null);
+		return (h == null);
 	}
 
 	public function remove( v : T ) : Bool {