Changed Execute() to ExecuteIfBound() to prevent crashes when opening or closing the load screen.
This commit is contained in:
parent
9b0016a548
commit
f63f25c51c
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user