mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
out syntax
This commit is contained in:
parent
f3f0ef299e
commit
b9247a78b6
@ -270,8 +270,7 @@ void AssignSceneID()
|
||||
return;
|
||||
|
||||
// no valid sceneId yet, or duplicate?
|
||||
NetworkIdentity existing;
|
||||
bool duplicate = sceneIds.TryGetValue(m_SceneId, out existing) && existing != null && existing != this;
|
||||
bool duplicate = sceneIds.TryGetValue(m_SceneId, out NetworkIdentity existing) && existing != null && existing != this;
|
||||
if (m_SceneId == 0 || duplicate)
|
||||
{
|
||||
// clear in any case, because it might have been a duplicate
|
||||
|
Loading…
Reference in New Issue
Block a user