Bugfix Unable Force Destroy UObjects
This commit is contained in:
parent
0c3831ad03
commit
36834676e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user