From 36834676e8d15a511b9e7795ebc18ff399a7c894 Mon Sep 17 00:00:00 2001 From: PHILIP White Date: Mon, 22 May 2023 16:14:22 +0100 Subject: [PATCH] Bugfix Unable Force Destroy UObjects --- .../the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp index 6bd962f..e0dbdff 100644 --- a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp +++ b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp @@ -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;