Skip to content

Commit

Permalink
Merge pull request #55995 from Xwdit/enum_fix
Browse files Browse the repository at this point in the history
Fix enum int comparison
  • Loading branch information
akien-mga authored Jan 17, 2022
2 parents 91909ef + 0430e26 commit 4cfade6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gdscript/gdscript_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,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);
Expand Down

0 comments on commit 4cfade6

Please sign in to comment.