Skip to content

Commit c5103da

Browse files
committed
BUGFIX : Pool expansion queue trouble fixed.
1 parent 669ea63 commit c5103da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ private GameObject ExpandPool(PooledObjectType tag, Vector3 pos, Quaternion rot)
120120

121121

122122
PoolDictionary[tag].Enqueue(temp);
123+
PoolDictionary[tag].Dequeue();
123124

124125
Pool[index].Size++;
125126

0 commit comments

Comments
 (0)