diff --git a/src/Input/Silk.NET.Input.Desktop/Collections/GlfwButtonCollection.cs b/src/Input/Silk.NET.Input.Desktop/Collections/GlfwButtonCollection.cs index 5ec643c715..656827a224 100644 --- a/src/Input/Silk.NET.Input.Desktop/Collections/GlfwButtonCollection.cs +++ b/src/Input/Silk.NET.Input.Desktop/Collections/GlfwButtonCollection.cs @@ -21,7 +21,7 @@ public GlfwButtonCollection(byte* bytes, int count) public int Count => _count; public Button this[int index] => index < _count - ? new Button ((ButtonName)index, index, Get(_bytes, index) != 0) + ? new Button ((ButtonName)index, index, _bytes[index] != 0) : throw new ArgumentOutOfRangeException(); public IEnumerator