From 8c61470fa95d128a416d86203651e1f00cb9c9f9 Mon Sep 17 00:00:00 2001 From: Hendrik Brucker Date: Wed, 15 Jun 2022 00:32:10 +0200 Subject: Hash function improvements --- modules/text_server_adv/text_server_adv.cpp | 2 +- modules/text_server_adv/text_server_adv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/text_server_adv') diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index d18ed97def..d3abef4c38 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -2780,7 +2780,7 @@ Vector2 TextServerAdvanced::font_get_kerning(const RID &p_font_rid, int64_t p_si ERR_FAIL_COND_V(!_ensure_cache_for_size(fd, size), Vector2()); - const HashMap &kern = fd->cache[size]->kerning_map; + const HashMap &kern = fd->cache[size]->kerning_map; if (kern.has(p_glyph_pair)) { if (fd->msdf) { diff --git a/modules/text_server_adv/text_server_adv.h b/modules/text_server_adv/text_server_adv.h index 62f94472b5..552ec28ce4 100644 --- a/modules/text_server_adv/text_server_adv.h +++ b/modules/text_server_adv/text_server_adv.h @@ -191,7 +191,7 @@ class TextServerAdvanced : public TextServerExtension { Vector textures; HashMap glyph_map; - HashMap kerning_map; + HashMap kerning_map; hb_font_t *hb_handle = nullptr; #ifdef MODULE_FREETYPE_ENABLED -- cgit v1.2.3