Fixed DirectInput shutdown bug

This commit is contained in:
pagefault
2001-06-18 19:40:36 +00:00
parent 9bd14af8b8
commit c4149156c2

View File

@@ -892,7 +892,7 @@ void ReleaseDirectInput()
KeyboardInput = NULL; KeyboardInput = NULL;
} }
for(int i = 0; i < 4; i++) for (int i=0; i<5; i++)
if (JoystickInput[i]) if (JoystickInput[i])
{ {
JoystickInput[i]->Release(); JoystickInput[i]->Release();