Merge pull request #23223 from BlackSkySoftware/bugfix/20141

Fixes crash when loading *.escn resources with gdnative #20141
This commit is contained in:
Rémi Verschelde 2018-10-22 17:15:21 +02:00 committed by GitHub
commit 919573f7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1711,8 +1711,7 @@ void NativeReloadNode::_notification(int p_what) {
}
RES ResourceFormatLoaderNativeScript::load(const String &p_path, const String &p_original_path, Error *r_error) {
ResourceFormatLoaderText rsflt;
return rsflt.load(p_path, p_original_path, r_error);
return ResourceFormatLoaderText::singleton->load(p_path, p_original_path, r_error);
}
void ResourceFormatLoaderNativeScript::get_recognized_extensions(List<String> *p_extensions) const {