UE5.4.1 -> Stack On Service (Opening behavior tree for the first time)

This happens when I open the behavior tree for the first time.
It is a service made in C++.
I have been using this service for months and had not problems before (Or I haven’t realized until today).

It’s the first tree service.

Captura de pantalla 2024-05-19 000232

This is the code that causes the error:

void UBTSIsBotAlive::InitializeFromAsset(UBehaviorTree& Asset)
{	
	UBlackboardData* BBAsset = GetBlackboardAsset();
	if (ensure(BBAsset))
	{
		IsBotAlive.ResolveSelectedKey(*BBAsset);
		GetHealth.ResolveSelectedKey(*BBAsset);
	}	
}

It only happens the first time.
Then it never happens again.

Is it your bug? or is it my bug?

Thank you so much!!

This fixed the problem

Super::InitializeFromAsset(Asset);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.