Explorar el Código

SDL_PrivateJoystickForceRecentering(): fix infinite loop

Janne Virtala hace 1 día
padre
commit
b5ef75249f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/joystick/SDL_joystick.c

+ 1 - 1
src/joystick/SDL_joystick.c

@@ -2492,7 +2492,7 @@ bool SDL_IsJoystickBeingAdded(void)
 
 void SDL_PrivateJoystickForceRecentering(SDL_Joystick *joystick)
 {
-    Uint8 i, j;
+    int i, j;
     Uint64 timestamp = SDL_GetTicksNS();
 
     SDL_AssertJoysticksLocked();