SDL_PrivateJoystickForceRecentering(): fix infinite loop

This commit is contained in:
Janne Virtala
2026-04-02 17:45:43 +03:00
committed by Sam Lantinga
parent 32ef82caaf
commit b5ef75249f

View File

@@ -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();