InputCommon/ExpressionParser: Make ValidateArguments access existing

members instead of passing arguments.
This commit is contained in:
Jordan Woyak
2025-01-28 19:23:52 -06:00
parent e4b464e727
commit 67b8100cd2
3 changed files with 55 additions and 84 deletions

View File

@ -769,7 +769,8 @@ private:
}
}
const auto argument_validation = func->SetArguments(std::move(args));
func->SetArguments(std::move(args));
const auto argument_validation = func->ValidateArguments();
if (std::holds_alternative<FunctionExpression::ExpectedArguments>(argument_validation))
{