Bugfix Crash On Damage Over Time Kill
This commit is contained in:
parent
82ce8b2074
commit
fc8c6bae19
@ -45,6 +45,7 @@ void UStatusEffect::OnStatusEffectAdd(AActor* Character)
|
||||
void UStatusEffect::TickDown(AActor* Character)
|
||||
{
|
||||
UStatusSystem* StatusSystem = Cast<UStatusSystem>(Character->GetComponentByClass(UStatusSystem::StaticClass()));
|
||||
if (!IsValid(StatusSystem->GetActiveStatusEffect(this).StatusIcon)) return;
|
||||
UTextBlock* StatusText = Cast<UTextBlock>(StatusSystem->GetActiveStatusEffect(this).StatusIcon->GetWidgetFromName(TEXT("DurationText")));
|
||||
StatusText->SetText(FText::FromString(FString::FromInt(BaseDuration)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user