diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-10 21:26:42 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2019-12-10 21:26:42 +0800 |
commit | 5deb6497a10981c1137b22e34c9fc91c5e8f8872 (patch) | |
tree | 74846fdbc46a3cf375cc1f85dc3e5e8a7193e876 /scene | |
parent | c868baf6581cb082844c7fde822c9b1ad86b3215 (diff) |
Fixes crash when using DynamicFont::set_font_data
Diffstat (limited to 'scene')
-rw-r--r-- | scene/resources/dynamic_font.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 99a2881d58..7524571956 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -657,6 +657,7 @@ void DynamicFont::_reload_cache() { if (!data.is_valid()) { data_at_size.unref(); outline_data_at_size.unref(); + fallbacks.resize(0); fallback_data_at_size.resize(0); fallback_outline_data_at_size.resize(0); return; |