Clean up old-style null check

This commit is contained in:
Frank Praznik
2025-09-15 10:59:36 -04:00
parent 21c9f5304d
commit cf646af707

View File

@@ -898,7 +898,7 @@ const bool *SDL_GetKeyboardState(int *numkeys)
{
SDL_Keyboard *keyboard = &SDL_keyboard;
if (numkeys != (int *)0) {
if (numkeys) {
*numkeys = SDL_SCANCODE_COUNT;
}
return keyboard->keystate;