Removing duplicate push

This commit is contained in:
Martin 2023-01-06 12:32:54 +01:00
parent cc482dc465
commit 85558c3d57

View File

@ -12,7 +12,7 @@ export class ObjectPool<T extends Component> {
this.componentName = componentName;
for (let i = 0; i < defaultPoolCount; i++) {
this.pooledObjects.push(this.createNew());
this.createNew();
}
}