mirror of
https://github.com/godotengine/godot.git
synced 2024-11-29 07:32:20 +00:00
Fix enum int comparison
Fix enum int comparison
This commit is contained in:
parent
be83968b6b
commit
0430e26e6d
@ -2606,7 +2606,8 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
|
||||
GDScriptParser::DataType result;
|
||||
result.type_source = GDScriptParser::DataType::ANNOTATED_EXPLICIT;
|
||||
result.kind = GDScriptParser::DataType::ENUM_VALUE;
|
||||
result.builtin_type = base.builtin_type;
|
||||
result.is_constant = true;
|
||||
result.builtin_type = Variant::INT;
|
||||
result.native_type = base.native_type;
|
||||
result.enum_type = name;
|
||||
p_identifier->set_datatype(result);
|
||||
|
Loading…
Reference in New Issue
Block a user