Skip to content

Commit 5684945

Browse files
committed
Fixed networkId leakage
1 parent 98b6ed5 commit 5684945

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,9 +1167,8 @@ internal void HandleApproval(uint clientId, int prefabId, bool approved, Vector3
11671167
NetworkedObject netObject = null;
11681168
if(NetworkConfig.HandleObjectSpawning)
11691169
{
1170-
uint networkId = SpawnManager.GetNetworkObjectId();
11711170
prefabId = prefabId == -1 ? NetworkConfig.NetworkPrefabIds[NetworkConfig.PlayerPrefabName] : prefabId;
1172-
netObject = SpawnManager.CreateSpawnedObject(prefabId, networkId, clientId, true, position, rotation, null, false, false);
1171+
netObject = SpawnManager.CreateSpawnedObject(prefabId, 0, clientId, true, position, rotation, null, false, false);
11731172
connectedClients[clientId].PlayerObject = netObject;
11741173
}
11751174

0 commit comments

Comments
 (0)