mirror of https://github.com/encounter/SDL.git
Fixed shadow variable warning
This commit is contained in:
parent
d355ea9981
commit
47ebf0087a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue