fixed joystick naming convention from file descriptor to joystick number
[rocksndiamonds.git] / src / libgame / system.c
index de59d77a6ce4bf501d8d278fa43f12c29216c617..5ccf3fb3784650147bc1f70aed77af72925dd0bb 100644 (file)
@@ -1620,7 +1620,7 @@ void InitJoysticks()
   /* always start with reliable default values */
   joystick.status = JOYSTICK_NOT_AVAILABLE;
   for (i = 0; i < MAX_PLAYERS; i++)
-    joystick.fd[i] = -1;               /* joystick device closed */
+    joystick.nr[i] = -1;               /* no joystick configured */
 
   SDLInitJoysticks();
 }