Skip to content

Commit 94bfc45

Browse files
author
lawwong
committed
Remove a potential null reference
1 parent bb9de9c commit 94bfc45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HTC.UnityPlugin/ViveInputUtility/Scripts/Misc/Teleportable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public IEnumerator StartTeleport(Vector3 position, float duration)
104104
var fadeScripts = FindObjectsOfType<SteamVR_Fade>();
105105
if (fadeScripts == null || fadeScripts.Length <= 0)
106106
{
107-
var topCam = SteamVR_Render.Top().gameObject;
107+
var topCam = SteamVR_Render.Top();
108108
if (topCam != null)
109109
{
110110
topCam.gameObject.AddComponent<SteamVR_Fade>();

0 commit comments

Comments
 (0)