Merge pull request #51083 from akien-mga/variantparser-fix-crash-42115
VariantParser: Fix uninitialized ResourceParser funcs
This commit is contained in:
commit
f2efa6f4f3
@ -73,9 +73,9 @@ public:
|
|||||||
|
|
||||||
struct ResourceParser {
|
struct ResourceParser {
|
||||||
void *userdata = nullptr;
|
void *userdata = nullptr;
|
||||||
ParseResourceFunc func;
|
ParseResourceFunc func = nullptr;
|
||||||
ParseResourceFunc ext_func;
|
ParseResourceFunc ext_func = nullptr;
|
||||||
ParseResourceFunc sub_func;
|
ParseResourceFunc sub_func = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TokenType {
|
enum TokenType {
|
||||||
|
@ -982,7 +982,6 @@ void ResourceLoaderText::open(FileAccess *p_f, bool p_skip_first_tag) {
|
|||||||
|
|
||||||
rp.ext_func = _parse_ext_resources;
|
rp.ext_func = _parse_ext_resources;
|
||||||
rp.sub_func = _parse_sub_resources;
|
rp.sub_func = _parse_sub_resources;
|
||||||
rp.func = nullptr;
|
|
||||||
rp.userdata = this;
|
rp.userdata = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user