mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 07:01:06 +00:00
size() <= 0 and size() < 1.
This commit is contained in:
parent
4f4031a675
commit
7a1a970c25
12 changed files with 16 additions and 16 deletions
|
|
@ -2157,7 +2157,7 @@ void GDScriptAnalyzer::resolve_for(GDScriptParser::ForNode *p_for) {
|
|||
GDScriptParser::IdentifierNode *callee = static_cast<GDScriptParser::IdentifierNode *>(call->callee);
|
||||
if (callee->name == "range") {
|
||||
list_resolved = true;
|
||||
if (call->arguments.size() < 1) {
|
||||
if (call->arguments.is_empty()) {
|
||||
push_error(R"*(Invalid call for "range()" function. Expected at least 1 argument, none given.)*", call->callee);
|
||||
} else if (call->arguments.size() > 3) {
|
||||
push_error(vformat(R"*(Invalid call for "range()" function. Expected at most 3 arguments, %d given.)*", call->arguments.size()), call->callee);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue