Fixed shadow variable warning

main
Sam Lantinga 2022-08-08 08:35:56 -07:00
parent d355ea9981
commit 47ebf0087a
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ HIDAPI_DriverCombined_OpenJoystick(SDL_HIDAPI_Device *device, SDL_Joystick *joys
SDL_HIDAPI_Device *child = device->children[i];
if (!child->driver->OpenJoystick(child, joystick)) {
while (i-- > 0) {
SDL_HIDAPI_Device *child = device->children[i];
child = device->children[i];
child->driver->CloseJoystick(child, joystick);
}
return SDL_FALSE;