Dan Korostelev 10 years ago
parent
commit
25599b55c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/cs/_std/Reflect.hx

+ 1 - 1
std/cs/_std/Reflect.hx

@@ -87,7 +87,7 @@ import cs.system.reflection.*;
 	public static function fields( o : Dynamic ) : Array<String>
 	public static function fields( o : Dynamic ) : Array<String>
 	{
 	{
 		var ihx = Lib.as(o,IHxObject);
 		var ihx = Lib.as(o,IHxObject);
-		if (o != null)
+		if (ihx != null)
 		{
 		{
 			var ret = [];
 			var ret = [];
 			untyped ihx.__hx_getFields(ret);
 			untyped ihx.__hx_getFields(ret);