clang tidy misc fixes

adress mixed || plus && concerns raised
This commit is contained in:
AzaezelX 2024-03-18 20:11:44 -05:00
parent 15971185ee
commit c337d5a9d2
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}