diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-02-19 21:35:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 21:35:53 +0100 |
commit | aeed774fef63c37b6894d889d6dc98202ee24ed0 (patch) | |
tree | a9c8c37a4e8bb498d4af5ea42f19f2855da0b62e /modules/gdscript/gdscript_parser.cpp | |
parent | f163b0e4b4da163de121503ca93aad212f053be4 (diff) | |
parent | 802d5c4c6c30d0f218b60245ca397cf8f5ed1b5d (diff) | |
download | redot-engine-aeed774fef63c37b6894d889d6dc98202ee24ed0.tar.gz |
Merge pull request #16173 from vnen/gdscript-arguments
Add argument count check for some GDScript functions
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 1392323d56..b8bf47fa17 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -1516,11 +1516,11 @@ GDScriptParser::Node *GDScriptParser::_reduce_expression(Node *p_node, bool p_to String errwhere; if (op->arguments[0]->type == Node::TYPE_TYPE) { TypeNode *tn = static_cast<TypeNode *>(op->arguments[0]); - errwhere = "'" + Variant::get_type_name(tn->vtype) + "'' constructor"; + errwhere = "'" + Variant::get_type_name(tn->vtype) + "' constructor"; } else { GDScriptFunctions::Function func = static_cast<BuiltInFunctionNode *>(op->arguments[0])->function; - errwhere = String("'") + GDScriptFunctions::get_func_name(func) + "'' intrinsic function"; + errwhere = String("'") + GDScriptFunctions::get_func_name(func) + "' intrinsic function"; } switch (ce.error) { |