From 3fa2f3898a681594d1c4fe641e3dc76913ff3270 Mon Sep 17 00:00:00 2001 From: ncannasse Date: Mon, 24 Sep 2018 15:54:24 +0200 Subject: [PATCH] fix --- hscript/Tools.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscript/Tools.hx b/hscript/Tools.hx index 77a8699..e0dc235 100644 --- a/hscript/Tools.hx +++ b/hscript/Tools.hx @@ -61,7 +61,7 @@ class Tools { } public static function map( e : Expr, f : Expr -> Expr ) { - var edef = switch( e.e ) { + var edef = switch( expr(e) ) { case EConst(_), EIdent(_), EBreak, EContinue: expr(e); case EVar(n, t, e): EVar(n, t, if( e != null ) f(e) else null); case EParent(e): EParent(f(e));