You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #55214 from Scony/fix-gdscript-crash-2
Fix GDScript parser crash on 'dollar mixed with assignment' expression
This commit is contained in:
@@ -2415,6 +2415,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_assignment(ExpressionNode
|
||||
push_error("Assignment is not allowed inside an expression.");
|
||||
return parse_expression(false); // Return the following expression.
|
||||
}
|
||||
if (p_previous_operand == nullptr) {
|
||||
return parse_expression(false); // Return the following expression.
|
||||
}
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
VariableNode *source_variable = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user