From 20d1f800f8521de81efb38fd45a1407f292c141f Mon Sep 17 00:00:00 2001 From: David Woodruff Date: Thu, 13 May 2021 15:15:44 -0400 Subject: [PATCH] removing incorrect use of null propagation on Unity object --- .../Scripts/Client/Game/Action/FXProjectileTargetedActionFX.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/BossRoom/Scripts/Client/Game/Action/FXProjectileTargetedActionFX.cs b/Assets/BossRoom/Scripts/Client/Game/Action/FXProjectileTargetedActionFX.cs index 0b81b0c7d..269fcd489 100644 --- a/Assets/BossRoom/Scripts/Client/Game/Action/FXProjectileTargetedActionFX.cs +++ b/Assets/BossRoom/Scripts/Client/Game/Action/FXProjectileTargetedActionFX.cs @@ -137,7 +137,7 @@ private FXProjectile SpawnAndInitializeProjectile() } // now that we have our projectile, initialize it so it'll fly at the target appropriately - projectile.Initialize(m_Parent.transform.position, m_Target?.transform, m_Data.Position, m_ProjectileDuration); + projectile.Initialize(m_Parent.transform.position, m_Target != null ? m_Target.transform : null, m_Data.Position, m_ProjectileDuration); return projectile; }