From 81826299ac3af629e1d6de13f6bfd6bd2630c1f2 Mon Sep 17 00:00:00 2001 From: Tebjan Halm Date: Sun, 17 Jul 2022 15:35:53 +0200 Subject: [PATCH] [Samples] Fix build error of VRSanbox Just removing a null check, as the type has changed from class to a struct and cannot be null. Fixes #1457 --- .../VRSandbox/VRSandbox.Game/Player/HandController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/Templates/VRSandbox/VRSandbox/VRSandbox.Game/Player/HandController.cs b/samples/Templates/VRSandbox/VRSandbox/VRSandbox.Game/Player/HandController.cs index 44c4c816f..51eda26c2 100644 --- a/samples/Templates/VRSandbox/VRSandbox/VRSandbox.Game/Player/HandController.cs +++ b/samples/Templates/VRSandbox/VRSandbox/VRSandbox.Game/Player/HandController.cs @@ -114,8 +114,8 @@ namespace VRSandbox.Player while (enumerator.MoveNext()) { var collision = enumerator.Current; - var entityA = collision?.ColliderA?.Entity; - var entityB = collision?.ColliderB?.Entity; + var entityA = collision.ColliderA?.Entity; + var entityB = collision.ColliderB?.Entity; var otherEntity = (entityA == Entity) ? entityB : entityA;