We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6644f19 + 23a6e5f commit 9cfdabcCopy full SHA for 9cfdabc
bt/bt_instance.cpp
@@ -42,6 +42,7 @@ BT::Status BTInstance::update(double p_delta) {
42
double start = Time::get_singleton()->get_ticks_usec();
43
#endif
44
45
+ const Ref<BTInstance> keep_alive{ this }; // keep instance alive until update is finished
46
last_status = root_task->execute(p_delta);
47
emit_signal(LW_NAME(updated), last_status);
48
0 commit comments