diff --git a/OmegaGameFramework/Source/OmegaGameFramework/Private/Widget/HUDLayer.cpp b/OmegaGameFramework/Source/OmegaGameFramework/Private/Widget/HUDLayer.cpp index a54a6b8a..df920146 100644 --- a/OmegaGameFramework/Source/OmegaGameFramework/Private/Widget/HUDLayer.cpp +++ b/OmegaGameFramework/Source/OmegaGameFramework/Private/Widget/HUDLayer.cpp @@ -33,7 +33,7 @@ void UHUDLayer::OnAnimationFinished_Implementation(const UWidgetAnimation* Anima void UHUDLayer::RemoveHUDLayer() { - if(this && IsVisible() && GetRemovedAnimation() && !bRemoving) + if(this != nullptr && IsVisible() && GetRemovedAnimation() && !bRemoving) { bRemoving=true; if(bReverseCloseAnim)