You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
properly handle typed array constructors in VariantParser, closes #3054
This commit is contained in:
@@ -458,7 +458,10 @@ Error VariantParser::_parse_construct(Stream *p_stream,Vector<T>& r_construct,in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
get_token(p_stream,token,line,r_err_str);
|
get_token(p_stream,token,line,r_err_str);
|
||||||
if (token.type!=TK_NUMBER) {
|
|
||||||
|
if (first && token.type==TK_PARENTHESIS_CLOSE) {
|
||||||
|
break;
|
||||||
|
} else if (token.type!=TK_NUMBER) {
|
||||||
r_err_str="Expected float in constructor";
|
r_err_str="Expected float in constructor";
|
||||||
return ERR_PARSE_ERROR;
|
return ERR_PARSE_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user