From d1ce5e37fc45bb01e85b6c28cbf6d69baba81080 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Mar 2017 21:22:11 +0100 Subject: [PATCH] - fixed another error in DispatchScriptProperty. That AST's data organization is really messed up... :( --- src/scripting/zscript/zcc_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 3cdd3c234..1d98b20cd 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1855,7 +1855,7 @@ void ZCCCompiler::DispatchScriptProperty(PProperty *prop, ZCC_PropertyStmt *prop } else if (parmcount != prop->Variables.Size()) { - Error(x, "Argument count mismatch: Got %u, expected %u", parmcount, prop->Variables.Size()); + Error(x == nullptr? property : x, "Argument count mismatch: Got %u, expected %u", parmcount, prop->Variables.Size()); return; }