Emulated Wiimote: Fixed typo in last commit

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2288 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson 2009-02-17 11:25:18 +00:00
parent 12a869304c
commit 7218a070e6
2 changed files with 4 additions and 3 deletions

View File

@ -583,8 +583,9 @@ void ConfigDialog::PadGetStatus()
{
//Console::Print("SDL_WasInit: %i\n", SDL_WasInit(0));
// Return if it's not detected
if(WiiMoteEmu::PadMapping[Page].ID >= SDL_NumJoysticks())
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
because of a manual ini file change, but we make that check anway. */
if(WiiMoteEmu::PadMapping[Page].ID < 0 || WiiMoteEmu::PadMapping[Page].ID >= SDL_NumJoysticks())
{
m_TStatusLeftIn[Page]->SetLabel(wxT("Not connected"));
m_TStatusLeftOut[Page]->SetLabel(wxT("Not connected"));

View File

@ -50,7 +50,7 @@ void ConfigBox::PadGetStatus()
{
/* Return if it's not detected. The ID should never be less than zero here, it can only be that
because of a manual ini file change, but we make that check anway. */
if(PadMapping[notebookpage].ID >= 0 && PadMapping[notebookpage].ID >= SDL_NumJoysticks())
if(PadMapping[notebookpage].ID < 0 || PadMapping[notebookpage].ID >= SDL_NumJoysticks())
{
m_TStatusIn[notebookpage]->SetLabel(wxT("Not connected"));
m_TStatusOut[notebookpage]->SetLabel(wxT("Not connected"));