diff options
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ExpressionParser.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControlReference/ExpressionParser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp index 84f856367e..6c5fe6a57a 100644 --- a/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp +++ b/Source/Core/InputCommon/ControlReference/ExpressionParser.cpp @@ -786,12 +786,13 @@ private: // Comma before the next argument. if (TOK_COMMA != tok.type) - return ParseResult::MakeErrorResult(tok, Common::GetStringT("Expected comma.")); + return ParseResult::MakeErrorResult(tok, Common::GetStringT("Expected closing paren.")); }; } } - 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)) { |
