mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
GDScript: Fix type conversion in assignment with operation
This commit is contained in:
parent
f065b34e96
commit
475d7f0e52
3 changed files with 25 additions and 18 deletions
|
@ -1144,7 +1144,7 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
|
|||
|
||||
GDScriptDataType assign_type = _gdtype_from_datatype(on->arguments[0]->get_datatype());
|
||||
|
||||
if (assign_type.has_type && !on->arguments[1]->get_datatype().has_type) {
|
||||
if (assign_type.has_type && !on->datatype.has_type) {
|
||||
// Typed assignment
|
||||
switch (assign_type.kind) {
|
||||
case GDScriptDataType::BUILTIN: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue