Changed Execute() to ExecuteIfBound() to prevent crashes when opening or closing the load screen.

This commit is contained in:
Jamie Greunbaum 2023-04-21 00:49:49 -04:00
parent 9b0016a548
commit f63f25c51c

View File

@ -6,13 +6,13 @@
void ULoadingScreenWidget::LoadScreenOpened()
{
#if !WITH_EDITOR
this->OnLoadScreenOpened.Execute();
this->OnLoadScreenOpened.ExecuteIfBound();
#endif
}
void ULoadingScreenWidget::LoadScreenClosed()
{
#if !WITH_EDITOR
this->OnLoadScreenClosed.Execute();
this->OnLoadScreenClosed.ExecuteIfBound();
#endif
}