Fixed scene switching issue

This commit is contained in:
Albin Corén 2018-04-02 20:59:26 +02:00
parent 02e5b886e6
commit b1c4cae028

View File

@ -74,7 +74,7 @@ namespace MLAPI.NetworkingManagerComponents.Core
Debug.LogWarning("MLAPI: Scene switching is not enabled but was requested by the server"); Debug.LogWarning("MLAPI: Scene switching is not enabled but was requested by the server");
return; return;
} }
else if (!sceneIndexToString.ContainsKey(sceneIndex) || registeredSceneNames.Contains(sceneIndexToString[sceneIndex])) else if (!sceneIndexToString.ContainsKey(sceneIndex) || !registeredSceneNames.Contains(sceneIndexToString[sceneIndex]))
{ {
Debug.LogWarning("MLAPI: Server requested a scene switch to a non registered scene"); Debug.LogWarning("MLAPI: Server requested a scene switch to a non registered scene");
return; return;