diff options
author | rune-scape <allie.smith.epic@gmail.com> | 2023-12-28 14:44:23 -0800 |
---|---|---|
committer | rune-scape <spartacrafter@gmail.com> | 2024-08-29 13:39:27 -0700 |
commit | 154049ce1792a6e12b990e0a414a6c084c3b91c5 (patch) | |
tree | 102bda57c74f9efaa227c970255327f734043ce9 /modules/text_server_adv | |
parent | 40b378e9e2338d84f897f6991cc913a713295785 (diff) | |
download | redot-engine-154049ce1792a6e12b990e0a414a6c084c3b91c5.tar.gz |
StringName Dictionary keys
also added 'is_string()' method to Variant
and refactored many String type comparisons to use it instead
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r-- | modules/text_server_adv/text_server_adv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index d0c22e9e4d..b1dc53018a 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -5902,7 +5902,7 @@ _FORCE_INLINE_ void TextServerAdvanced::_add_featuers(const Dictionary &p_source int32_t value = values[i]; if (value >= 0) { hb_feature_t feature; - if (keys[i].get_type() == Variant::STRING) { + if (keys[i].is_string()) { feature.tag = _name_to_tag(keys[i]); } else { feature.tag = keys[i]; |