mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Fix crash on android 6.0.1, fixes #3321
This commit is contained in:
parent
0b4c088089
commit
4cb14ae7d6
@ -96,7 +96,7 @@ void DirAccessJAndroid::list_dir_end(){
|
||||
return;
|
||||
|
||||
JNIEnv *env = ThreadAndroid::get_env();
|
||||
env->CallObjectMethod(io,_dir_close,id);
|
||||
env->CallVoidMethod(io,_dir_close,id);
|
||||
id=0;
|
||||
|
||||
|
||||
@ -143,7 +143,7 @@ Error DirAccessJAndroid::change_dir(String p_dir){
|
||||
if (res<=0)
|
||||
return ERR_INVALID_PARAMETER;
|
||||
|
||||
env->CallObjectMethod(io,_dir_close,res);
|
||||
env->CallVoidMethod(io,_dir_close,res);
|
||||
|
||||
current_dir=new_dir;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user