Fix stuff

This commit is contained in:
Sardelka 2022-08-11 19:42:30 +08:00
parent 1d3e53f734
commit 29202906e1
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ namespace RageCoop.Client
}
internal set
{
if (value==_ownerID) { return; }
if (value==_ownerID && Owner!=null) { return; }
_ownerID = value;
Owner=PlayerList.GetPlayer(value);
}

View File

@ -8,6 +8,7 @@ namespace RageCoop.Core
{
public ObjectPool<Packets.VehicleSync> VehicleSyncPool=ObjectPool.Create<Packets.VehicleSync>();
public ObjectPool<Packets.PedSync> PedSyncPool = ObjectPool.Create<Packets.PedSync>();
public void Recycle(Packets.VehicleSync p)
{
VehicleSyncPool.Return(p);