We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311c671 commit 33143a4Copy full SHA for 33143a4
MLAPI/NetworkingManagerComponents/Core/SpawnManager.cs
@@ -388,7 +388,7 @@ internal static void ServerDestroySpawnedSceneObjects()
388
{
389
for (int i = 0; i < SpawnedObjectsList.Count; i++)
390
391
- if (SpawnedObjectsList[i].IsSceneObject != null && SpawnedObjectsList[i].DestroyWithScene)
+ if ((SpawnedObjectsList[i].IsSceneObject != null && SpawnedObjectsList[i].IsSceneObject == true) || SpawnedObjectsList[i].DestroyWithScene)
392
393
if (customDestroyHandlers.ContainsKey(SpawnedObjectsList[i].PrefabHash))
394
0 commit comments