fixed joystick naming convention from file descriptor to joystick number
[rocksndiamonds.git] / src / libgame / sdl.c
index ee43dc05b0c1b1795328b129d1ca0a563f0398e2..04a098cdaf0af24fc5af18895ec936123f2bb63d 100644 (file)
@@ -2913,8 +2913,8 @@ void SDLInitJoysticks()
       joystick_nr = -1;
     }
 
-    /* misuse joystick file descriptor variable to store joystick number */
-    joystick.fd[i] = joystick_nr;
+    /* store configured joystick number for each player */
+    joystick.nr[i] = joystick_nr;
   }
 
   /* now open all connected joysticks (regardless if configured or not) */