diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-10 17:19:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:19:52 +0100 |
commit | 49482966ec0e5b9a8937eef5ef664c9a350f50d3 (patch) | |
tree | 0e3daf799f0a5427fdf92f3278e272cd0a8b868d /modules/gdscript/gdscript_parser.cpp | |
parent | 1989120d3f4753b6de6f5996dc2e33f7bf83da71 (diff) | |
parent | b5b75cad430efe148b1555f126930b73cf33d2e8 (diff) |
Merge pull request #55715 from nathanfranke/enum-ordered
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 4fda1e5391..432d31f78f 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3539,12 +3539,12 @@ bool GDScriptParser::export_annotations(const AnnotationNode *p_annotation, Node variable->export_info.hint = PROPERTY_HINT_ENUM; String enum_hint_string; - for (const Map<StringName, int>::Element *E = export_type.enum_values.front(); E; E = E->next()) { - enum_hint_string += E->key().operator String().capitalize().xml_escape(); + for (OrderedHashMap<StringName, int>::Element E = export_type.enum_values.front(); E; E = E.next()) { + enum_hint_string += E.key().operator String().capitalize().xml_escape(); enum_hint_string += ":"; - enum_hint_string += String::num_int64(E->get()).xml_escape(); + enum_hint_string += String::num_int64(E.value()).xml_escape(); - if (E->next()) { + if (E.next()) { enum_hint_string += ","; } } |