diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-11-19 00:17:37 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-11-24 21:48:16 +1100 |
commit | a479f5af2208882767ae5d11dca35cc9bfecef31 (patch) | |
tree | eb093fca304199f06ec27fe6ac8ef9e7eef9a193 /core/templates | |
parent | fa270c2456df5ad12f51584c4ff891e2cf728cec (diff) |
Improve logic for detecting and tracking extensions
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/hashfuncs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/templates/hashfuncs.h b/core/templates/hashfuncs.h index 456a7b01ed..059f30df38 100644 --- a/core/templates/hashfuncs.h +++ b/core/templates/hashfuncs.h @@ -310,6 +310,7 @@ struct HashMapHasherDefault { static _FORCE_INLINE_ uint32_t hash(const char16_t p_uchar) { return hash_fmix32(p_uchar); } static _FORCE_INLINE_ uint32_t hash(const char32_t p_uchar) { return hash_fmix32(p_uchar); } static _FORCE_INLINE_ uint32_t hash(const RID &p_rid) { return hash_one_uint64(p_rid.get_id()); } + static _FORCE_INLINE_ uint32_t hash(const CharString &p_char_string) { return hash_djb2(p_char_string.ptr()); } static _FORCE_INLINE_ uint32_t hash(const StringName &p_string_name) { return p_string_name.hash(); } static _FORCE_INLINE_ uint32_t hash(const NodePath &p_path) { return p_path.hash(); } static _FORCE_INLINE_ uint32_t hash(const ObjectID &p_id) { return hash_one_uint64(p_id); } |