You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 17:36:07 +00:00
Merge pull request #55213 from Scony/fix-gdscript-crash
This commit is contained in:
@@ -1164,6 +1164,10 @@ static bool _guess_method_return_type_from_base(GDScriptParser::CompletionContex
|
|||||||
static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context, const GDScriptParser::ExpressionNode *p_expression, GDScriptCompletionIdentifier &r_type) {
|
static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context, const GDScriptParser::ExpressionNode *p_expression, GDScriptCompletionIdentifier &r_type) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
|
if (p_expression == nullptr) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (p_expression->is_constant) {
|
if (p_expression->is_constant) {
|
||||||
// Already has a value, so just use that.
|
// Already has a value, so just use that.
|
||||||
r_type = _type_from_variant(p_expression->reduced_value);
|
r_type = _type_from_variant(p_expression->reduced_value);
|
||||||
|
|||||||
Reference in New Issue
Block a user