From 8e43b822afdc49fa6556def5f0d2b6d83fe6c377 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 f42a00e82..f855a71b2 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1808,7 +1808,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; }