Bugfix Unable Force Destroy UObjects

This commit is contained in:
Philip W 2023-05-22 16:14:22 +01:00
parent 0c3831ad03
commit 36834676e8

View File

@ -462,7 +462,6 @@ void ATurnBaseCombatV2::DamagePlayer(int Damage, const FString& DamageType)
for (UStatusEffect* StatusEffect : StatusEffects)
{
StatusEffect->OnExpiry(PlayerActor);
StatusEffect->BeginDestroy();
}
StatusEffects.Empty();
return;
@ -521,7 +520,6 @@ void ATurnBaseCombatV2::DamageEnemy(int Damage, const FString& DamageType)
for (UStatusEffect* StatusEffect : StatusEffects)
{
StatusEffect->OnExpiry(PlayerActor);
StatusEffect->BeginDestroy();
}
StatusEffects.Empty();
return;