From 6f53683ca4ab35a9957c82df4d0195d4dcda60dd Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 24 Oct 2013 22:30:17 +0200 Subject: be extra paranoid about dinput stale pointers Signed-off-by: Stanislaw Halik --- ftnoir_tracker_joystick/ftnoir_tracker_joystick.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ftnoir_tracker_joystick') 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); } -- cgit v1.2.3