Skip to content

Commit

Permalink
fix: prevent NRE if client is not present on server (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
uweeby committed Nov 2, 2020
1 parent 8d7815f commit 357da87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Runtime/NetworkSceneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public void ChangeServerScene(string scenePath, SceneOperation sceneOperation =
// Let server prepare for scene change
OnServerChangeScene(scenePath, sceneOperation);

if(!client.IsLocalClient)
if(!server.LocalClientActive)
StartCoroutine(ApplySceneOperation(scenePath, sceneOperation));

// notify all clients about the new scene
Expand Down

0 comments on commit 357da87

Please sign in to comment.