src/joystick/SDL_joystick.c
changeset 716 f25e3334d583
parent 297 f6ffac90895c
child 769 b8d311d90021
--- a/src/joystick/SDL_joystick.c	Fri Sep 05 15:20:47 2003 +0000
+++ b/src/joystick/SDL_joystick.c	Sat Sep 13 02:20:32 2003 +0000
@@ -63,8 +63,8 @@
 			SDL_numjoysticks = 0;
 		} else {
 			memset(SDL_joysticks, 0, arraylen);
+			SDL_numjoysticks = status;
 		}
-		SDL_numjoysticks = status;
 		status = 0;
 	}
 	default_joystick = NULL;