Skip to content

Commit e9a5b28

Browse files
committed
Fixed clearing of pending soft sync objects
1 parent 76d3eea commit e9a5b28

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

MLAPI/MonoBehaviours/Core/NetworkingManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ private object Init(bool server)
257257
SpawnManager.SpawnedObjects.Clear();
258258
SpawnManager.SpawnedObjectsList.Clear();
259259
SpawnManager.releasedNetworkObjectIds.Clear();
260-
//SpawnManager.PendingSpawnObjects.Clear();
261-
//SpawnManager.PendingSoftSyncObjects.Clear();
260+
SpawnManager.pendingSoftSyncObjects.Clear();
262261
SpawnManager.customSpawnHandlers.Clear();
263262
SpawnManager.customDestroyHandlers.Clear();
264263
NetworkSceneManager.registeredSceneNames.Clear();

MLAPI/NetworkingManagerComponents/Core/NetworkSceneManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static class NetworkSceneManager
1818
internal static readonly HashSet<string> registeredSceneNames = new HashSet<string>();
1919
internal static readonly Dictionary<string, uint> sceneNameToIndex = new Dictionary<string, uint>();
2020
internal static readonly Dictionary<uint, string> sceneIndexToString = new Dictionary<uint, string>();
21-
internal static Dictionary<Guid, SceneSwitchProgress> sceneSwitchProgresses = new Dictionary<Guid, SceneSwitchProgress>();
21+
internal static readonly Dictionary<Guid, SceneSwitchProgress> sceneSwitchProgresses = new Dictionary<Guid, SceneSwitchProgress>();
2222
private static Scene lastScene;
2323
private static Scene nextScene;
2424
private static bool isSwitching = false;

0 commit comments

Comments
 (0)