From c59ac16589a7faeaa6dbfa5a8c5680708cf0792d Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Wed, 28 Sep 2016 20:40:40 +1000 Subject: [PATCH] Fix false error if more then one function have same name. --- src/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/object.cpp b/src/object.cpp index e310262..b9b9612 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -170,7 +170,7 @@ const ObjectBase* Evaluate(ExecExpr& exp, bool* err) exp.erase(pr); // Error handling - if(!errl.empty()) + if( res==nullptr || res->isError() ) { const struct grammatic_location& loc=cse->Location(); *err=true; // Raise error flag