From 7073db7bfa190620ccfdc102b7fd045889e32ef5 Mon Sep 17 00:00:00 2001 From: yds Date: Wed, 17 Jul 2024 13:25:58 -0300 Subject: [PATCH] Fix error when loading scene with a `BTPlayer` --- bt/bt_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt/bt_player.cpp b/bt/bt_player.cpp index 838baf7..3f8cc23 100644 --- a/bt/bt_player.cpp +++ b/bt/bt_player.cpp @@ -214,10 +214,10 @@ void BTPlayer::_notification(int p_notification) { if (behavior_tree.is_valid()) { _load_tree(); } - set_active(active); } else { _update_blackboard_plan(); } + set_active(active); } break; case NOTIFICATION_ENTER_TREE: { #ifdef DEBUG_ENABLED