Skip to content

Commit

Permalink
fixing null
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Mar 24, 2021
1 parent 6c85f7f commit 8be19f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/NetworkWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public bool TryGetIdentity(uint id, out NetworkIdentity identity)
internal void AddIdentity(uint netId, NetworkIdentity identity)
{
SpawnedObjects.Add(netId, identity);
onSpawn.Invoke(identity);
onSpawn?.Invoke(identity);
}
internal void RemoveIdentity(NetworkIdentity identity)
{
Expand Down

0 comments on commit 8be19f9

Please sign in to comment.