mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-10-09 16:46:00 +00:00
Removing duplicate push
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user