From 914d9213a48ea009b163d5f39d244f638382f7a0 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 22 Dec 2022 14:55:19 +0100 Subject: [PATCH] Effect pool fix --- assets/Scripts/Game/Items/PickupEffect/PickupEffectManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Scripts/Game/Items/PickupEffect/PickupEffectManager.ts b/assets/Scripts/Game/Items/PickupEffect/PickupEffectManager.ts index 96e61b1..ff5a4b7 100644 --- a/assets/Scripts/Game/Items/PickupEffect/PickupEffectManager.ts +++ b/assets/Scripts/Game/Items/PickupEffect/PickupEffectManager.ts @@ -21,6 +21,6 @@ export class PickupEffectManager extends Component { await delay(450); - this.effectPool.return(effect); + this.effectPool?.return(effect); } }