Tiny fix so that joystick2 being closed can let the JoystickSubSystem close before game close.
No memory leak here, just a very tiny thing I noticed.
This commit is contained in:
1 parent
44ed8cebbb
commit
497314fdc4
1 file changed
+1
@@ -1154,6 +1154,7 @@ static void I_ShutdownJoystick2(void)
|
||||
D_PostEvent(&event);
|
||||
}
|
||||
|
||||
joystick2_started = 0;
|
||||
JoyReset(&JoyInfo2);
|
||||
if (!joystick_started && !joystick2_started && SDL_WasInit(SDL_INIT_JOYSTICK) == SDL_INIT_JOYSTICK)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user