mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 19:28:53 +00:00
Removing duplicate push
This commit is contained in:
parent
cc482dc465
commit
85558c3d57
@ -12,7 +12,7 @@ export class ObjectPool<T extends Component> {
|
|||||||
this.componentName = componentName;
|
this.componentName = componentName;
|
||||||
|
|
||||||
for (let i = 0; i < defaultPoolCount; i++) {
|
for (let i = 0; i < defaultPoolCount; i++) {
|
||||||
this.pooledObjects.push(this.createNew());
|
this.createNew();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user