- fixed another error in DispatchScriptProperty. That AST's data organization is really messed up... :(

This commit is contained in:
Christoph Oelckers 2017-03-13 21:22:11 +01:00
parent 7a61f1a779
commit 8e43b822af

View file

@ -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;
}