Hi,
I have an issue with
void AGameSession::HandleMatchHasStarted() :
StartSessionCompleteHandle = SessionInt->AddOnStartSessionCompleteDelegate_Handle(FOnStartSessionCompleteDelegate::CreateUObject(this, &AGameSession::OnStartSessionComplete));
If I call twice:
void AGameMode::HandleMatchHasStarted()
{
GameSession->HandleMatchHasStarted();
It crash on
check(!DelegateInstanceInterface->IsSameFunction(InDelegateInstance)); (in C:\Unreal Engine\4.8\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl_Variadics inside FDelegateHandle AddDelegateInstance( TDelegateInstanceInterface InDelegateInstance ))
It seems that the 2 delegate are not the same.
I have no clue what’s the issue . From what I’m understanding, the Delegate is created Twice on the same function, but it should not be an issue. in 4.7, it was not. Does someone is aware of a change on the delegate management?
Thanks,