Skip to content

Commit 6dcaa61

Browse files
Updated Assert for invalid pointer index.
1 parent 4152c69 commit 6dcaa61

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)