Skip to content

Commit da355f8

Browse files
Merge pull request #1372 from StephenHodgson/MRTK-AssertPatch
Updated Assert for invalid pointer index.
2 parents 4152c69 + 6dcaa61 commit da355f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HoloToolkit/Input/Scripts/Focus/FocusManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void UnregisterPointer(IPointingSource pointingSource)
292292

293293
int pointerIndex;
294294
TryGetPointerIndex(pointingSource, out pointerIndex);
295-
Debug.Assert(pointerIndex > 0, "Invalid pointer index!");
295+
Debug.Assert(pointerIndex >= 0, "Invalid pointer index!");
296296

297297
PointerData pointer;
298298
GetPointerData(pointingSource, out pointer);

0 commit comments

Comments
 (0)