diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-30 23:22:00 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-07-30 23:23:31 +0200 |
commit | f3aaa713d9296bae68a6db91157a2063f01fddc5 (patch) | |
tree | 4dbdde97b1d3a36bcdfada3fc9a4777741c03f88 /scene/resources | |
parent | 5a30ba7a66b32577e5b7d4a19e7fe5fbdad572e9 (diff) |
VariantParser: Fix uninitialized ResourceParser funcs
They could cause a segfault when parsing values with ID "Resource"
as apparently we never set a valid `func` for it.
Fixes crash part of #42115.
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/resource_format_text.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index 3f6e926aa7..250a2311a0 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -982,7 +982,6 @@ void ResourceLoaderText::open(FileAccess *p_f, bool p_skip_first_tag) { rp.ext_func = _parse_ext_resources; rp.sub_func = _parse_sub_resources; - rp.func = nullptr; rp.userdata = this; } |