From 82ce8b2074e02e3d0910f384f62487fa760304bb Mon Sep 17 00:00:00 2001 From: Blue Probert Date: Thu, 27 Apr 2023 17:40:34 +0100 Subject: [PATCH] Bugfix Crash on No Post Processing Component --- .../the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp index f2de4ab..6411d09 100644 --- a/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp +++ b/Source/the_twilight_abyss/TurnBasedCombatV2/TurnBaseCombatV2.cpp @@ -169,7 +169,7 @@ void ATurnBaseCombatV2::BeginPlay() FWeightedBlendable WeightedBlendable; WeightedBlendable.Object = RedVignetteMaterialInstance; WeightedBlendable.Weight = 1.0f; - PostProcessVolume->Settings.WeightedBlendables.Array.Add(WeightedBlendable); + if (IsValid(PostProcessVolume)) PostProcessVolume->Settings.WeightedBlendables.Array.Add(WeightedBlendable); } TArray StaticMeshComponents;