mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 18:27:50 +00:00
Fixed warning C4456: declaration of 'e' hides previous local declaration
This also fixes incorrect interpretation of OPENVR_SetupJoystckBasedOnLoadedActionManifest() return value.
This commit is contained in:
parent
8119568805
commit
35be8bb7f9
1 changed files with 2 additions and 3 deletions
|
|
@ -521,7 +521,7 @@ static void OPENVR_VirtualControllerUpdate(void *userdata)
|
|||
return;
|
||||
}
|
||||
|
||||
static bool OPENVR_SetupJoystckBasedOnLoadedActionManifest(SDL_VideoData * videodata)
|
||||
static bool OPENVR_SetupJoystickBasedOnLoadedActionManifest(SDL_VideoData * videodata)
|
||||
{
|
||||
SDL_VirtualJoystickDesc desc;
|
||||
int virtual_index;
|
||||
|
|
@ -1646,8 +1646,7 @@ static SDL_VideoDevice *OPENVR_CreateDevice(void)
|
|||
goto error;
|
||||
}
|
||||
} else {
|
||||
int e = OPENVR_SetupJoystckBasedOnLoadedActionManifest(data);
|
||||
if(e) {
|
||||
if(!OPENVR_SetupJoystickBasedOnLoadedActionManifest(data)) {
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue