out syntax

This commit is contained in:
vis2k 2019-04-14 12:43:05 +02:00
parent f3f0ef299e
commit b9247a78b6

View File

@ -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