From 85558c3d5758e4d69b277af6f30709fe3517aee2 Mon Sep 17 00:00:00 2001 From: Martin Date: Fri, 6 Jan 2023 12:32:54 +0100 Subject: [PATCH] Removing duplicate push --- assets/Scripts/Services/ObjectPool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Scripts/Services/ObjectPool.ts b/assets/Scripts/Services/ObjectPool.ts index bb07ae6..896fa85 100644 --- a/assets/Scripts/Services/ObjectPool.ts +++ b/assets/Scripts/Services/ObjectPool.ts @@ -12,7 +12,7 @@ export class ObjectPool { this.componentName = componentName; for (let i = 0; i < defaultPoolCount; i++) { - this.pooledObjects.push(this.createNew()); + this.createNew(); } }