Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Rid another unnecessary state copy call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryochan7 committed Jul 27, 2017
1 parent 473958b commit 7f75565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DS4Windows/DS4Control/Mapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,7 @@ private static async void MapCustomAction(int device, DS4State cState, DS4State
DS4Device d = ctrl.DS4Controllers[device];
//cus

DS4State tempPrevState = d.getPreviousState();
DS4State tempPrevState = d.getPreviousStateRef();
// Only create one instance of previous DS4StateFieldMapping in case more than one multi-action
// button is assigned
if (previousFieldMapping == null)
Expand Down

0 comments on commit 7f75565

Please sign in to comment.