mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
removing 2nd null check (#2128)
if identity is not null then the game object is also not null
This commit is contained in:
parent
2b6a1bb792
commit
17838c5b52
@ -506,9 +506,10 @@ public static void Update()
|
||||
// update all server objects
|
||||
foreach (KeyValuePair<uint, NetworkIdentity> kvp in NetworkIdentity.spawned)
|
||||
{
|
||||
if (kvp.Value != null && kvp.Value.gameObject != null)
|
||||
NetworkIdentity identity = kvp.Value;
|
||||
if (identity != null)
|
||||
{
|
||||
kvp.Value.ServerUpdate();
|
||||
identity.ServerUpdate();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user