Bugfix Crash on No Post Processing Component

This commit is contained in:
Blue Probert 2023-04-27 17:40:34 +01:00
parent 69bd004895
commit 82ce8b2074

View File

@ -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<UStaticMeshComponent*> StaticMeshComponents;