Skip to content

Commit

Permalink
Hotfix: calling get_tree() caused crash on quit see godotengine/godot…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogasp committed Oct 27, 2022
1 parent 777d729 commit 5cc343b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CoreGame/CoreGame/src/GodotLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ using namespace godot;
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) { Godot::gdnative_init(o); }

extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
// Crash on quit calling get_tree() https://github.com/godotengine/godot/issues/48295#issuecomment-981404421
Godot::nativescript_terminate(godot::_RegisterState::nativescript_handle);
Godot::gdnative_terminate(o);
}

Expand Down

0 comments on commit 5cc343b

Please sign in to comment.