Skip to content

Commit 7186d44

Browse files
ads102003MrBlue
authored andcommitted
Update Player library to use new Pool methods
1 parent 8be545a commit 7186d44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Libraries/Player.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public void Rename(BasePlayer player, string name)
200200
return;
201201
}
202202

203-
List<Connection> connections = Pool.GetList<Connection>();
203+
List<Connection> connections = Pool.Get<List<Connection>>();
204204

205205
for (int i = 0; i < Net.sv.connections.Count; i++)
206206
{
@@ -213,7 +213,7 @@ public void Rename(BasePlayer player, string name)
213213
}
214214

215215
player.OnNetworkSubscribersLeave(connections);
216-
Pool.FreeList(ref connections);
216+
Pool.FreeUnmanaged(ref connections);
217217

218218
if (player.limitNetworking)
219219
{

0 commit comments

Comments
 (0)