diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-24 22:30:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-24 22:30:17 +0200 |
commit | 6f53683ca4ab35a9957c82df4d0195d4dcda60dd (patch) | |
tree | c22204429e76b1b50134bd3ddc91a7aa43f9e0c8 /ftnoir_tracker_joystick | |
parent | bd7b99f34b8ae19231684eefea6285af1bfb735d (diff) |
be extra paranoid about dinput stale pointers
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_joystick')
-rw-r--r-- | ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp index 35d3927f..c591fc36 100644 --- a/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp +++ b/ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp @@ -37,6 +37,9 @@ void FTNoIR_Tracker::reload() if (g_pDI) g_pDI->Release(); + g_pJoystick = nullptr; + g_pDI = nullptr; + StartTracker(frame); } |