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()
|
void ULoadingScreenWidget::LoadScreenOpened()
|
||||||
{
|
{
|
||||||
#if !WITH_EDITOR
|
#if !WITH_EDITOR
|
||||||
this->OnLoadScreenOpened.Execute();
|
this->OnLoadScreenOpened.ExecuteIfBound();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ULoadingScreenWidget::LoadScreenClosed()
|
void ULoadingScreenWidget::LoadScreenClosed()
|
||||||
{
|
{
|
||||||
#if !WITH_EDITOR
|
#if !WITH_EDITOR
|
||||||
this->OnLoadScreenClosed.Execute();
|
this->OnLoadScreenClosed.ExecuteIfBound();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user