From bcfbe8197914f6d2e70baad1cb0be9e5f8199be0 Mon Sep 17 00:00:00 2001 From: Nicolas Cannasse Date: Wed, 20 Nov 2019 18:13:47 +0100 Subject: [PATCH] fixed pmin/pmax for resumeErrors --- hscript/Parser.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hscript/Parser.hx b/hscript/Parser.hx index 67d9e5b..b63487c 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -253,7 +253,7 @@ class Parser { inline function pmin(e:Expr) { #if hscriptPos - return e.pmin; + return e == null ? 0 : e.pmin; #else return 0; #end @@ -261,7 +261,7 @@ class Parser { inline function pmax(e:Expr) { #if hscriptPos - return e.pmax; + return e == null ? 0 : e.pmax; #else return 0; #end