From 03912ef1d5c2cf0b9b1f56dd65835484da3625ba Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 2 Apr 2017 00:07:53 -0700 Subject: [PATCH] Small performance change --- DS4Windows/DS4Control/Mapping.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/Mapping.cs b/DS4Windows/DS4Control/Mapping.cs index b71b79d..526220c 100644 --- a/DS4Windows/DS4Control/Mapping.cs +++ b/DS4Windows/DS4Control/Mapping.cs @@ -1211,7 +1211,7 @@ namespace DS4Windows int actionDoneCount = actionDone.Count; if (actionDoneCount < index + 1) actionDone.Add(new ActionState()); - else if (actionDoneCount > GetActions().Count()) + else if (actionDoneCount > GetActions().Count) actionDone.RemoveAt(actionDoneCount - 1); double time = 0.0; //If a key or button is assigned to the trigger, a key special action is used like