legoinputmanager: Don't set default value for numJoysticks

Fixes joysticks not working
This commit is contained in:
Joshua Peisach 2025-06-30 11:20:37 -04:00 committed by GitHub
parent a258a89b1f
commit 94a9f93158
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,7 @@ MxResult LegoInputManager::GetJoystick()
return SUCCESS;
}
MxS32 numJoysticks = 0;
MxS32 numJoysticks;
if (m_joyids == NULL) {
m_joyids = SDL_GetJoysticks(&numJoysticks);
}