Merge pull request #549 from daemitus/keystate2

This commit is contained in:
goaaats 2021-09-09 02:07:59 +02:00 committed by GitHub
commit 8bc4598a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,9 +122,9 @@ namespace Dalamud.Game.ClientState.Keys
/// </summary> /// </summary>
public void ClearAll() public void ClearAll()
{ {
for (var i = 0; i < MaxKeyCodeIndex; i++) foreach (var vk in this.GetValidVirtualKeys())
{ {
this.GetRefValue(i) = 0; this[vk] = false;
} }
} }