Sfoglia il codice sorgente

SDL_PrivateJoystickForceRecentering(): fix infinite loop

Janne Virtala 20 ore fa
parent
commit
b5ef75249f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();