diff options
author | Nathan Franke <natfra@pm.me> | 2021-12-08 00:34:17 -0600 |
---|---|---|
committer | Nathan Franke <me@nathan.sh> | 2021-12-16 21:49:42 -0800 |
commit | b5b75cad430efe148b1555f126930b73cf33d2e8 (patch) | |
tree | 8d9fd2bdcbc87c0e35d3eecaeeefcefb80ac9c4c /modules/gdscript/gdscript_parser.cpp | |
parent | ed395c6b99915809347a87b0d65220c256d6ec3f (diff) | |
download | redot-engine-b5b75cad430efe148b1555f126930b73cf33d2e8.tar.gz |
Use OrderedHashMap for enum_values
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 48f58e51fe..5bcfc023c0 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -3510,12 +3510,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 += ","; } } |