mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
clang tidy misc fixes
adress mixed || plus && concerns raised
This commit is contained in:
parent
15971185ee
commit
c337d5a9d2
3 changed files with 3 additions and 3 deletions
|
|
@ -822,7 +822,7 @@ DefineEngineStaticMethod(SDLInputManager, ControllerNameForIndex, const char *,
|
|||
"@see https://wiki.libsdl.org/SDL_GameControllerNameForIndex \n"
|
||||
"@ingroup Input")
|
||||
{
|
||||
if (sdlIndex >= 0 && sdlIndex < SDL_NumJoysticks() || !SDL_IsGameController(sdlIndex))
|
||||
if ((sdlIndex >= 0 && sdlIndex < SDL_NumJoysticks()) || (!SDL_IsGameController(sdlIndex)))
|
||||
return SDL_GameControllerNameForIndex(sdlIndex);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue