- 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 5141fee8c0
commit d1ce5e37fc

View file

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