Small performance change

This commit is contained in:
Travis Nickles 2017-04-02 00:07:53 -07:00
parent 54ffcf0201
commit 03912ef1d5

View File

@ -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