summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2018-01-30 01:32:08 -0200
committerGeorge Marques <george@gmarqu.es>2018-01-30 01:32:08 -0200
commit802d5c4c6c30d0f218b60245ca397cf8f5ed1b5d (patch)
treeb98cf5d1bc45ef8e4b568b3c0e62d37fc56c8f0a /modules/gdscript/gdscript_parser.cpp
parent9f3138eea99b776a82bb1243a963b8e47adbc9c3 (diff)
downloadredot-engine-802d5c4c6c30d0f218b60245ca397cf8f5ed1b5d.tar.gz
Add argument count check for some GDScript functions
- Print functions have no check. - Also remove extra apostrophe from the error report.
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index c67214638d..204d5980fd 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -1518,11 +1518,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) {