Skip to content

Commit

Permalink
perf: avoiding call to find NetworkIdentity
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Jul 16, 2022
1 parent eaee748 commit 7947e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/ServerObjectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ private void Respawn(NetworkIdentity identity)
if (!identity.IsSpawned)
{
// If the object has not been spawned, then do a full spawn and update observers
Spawn(identity.gameObject, identity.Owner);
Spawn(identity, identity.Owner);
}
else
{
Expand Down

0 comments on commit 7947e9e

Please sign in to comment.