]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix copy&paste error, joyport2 always used port 3.
authorToni Wilen <twilen@winuae.net>
Sat, 3 Feb 2018 15:22:50 +0000 (17:22 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 3 Feb 2018 15:22:50 +0000 (17:22 +0200)
cfgfile.cpp

index 9e80b444fe1d272e5e2e8dde5ad03b9990eb3a86..ab45a000115c09837ea4b6f6037f1e8dc9e9d2af 100644 (file)
@@ -3530,7 +3530,7 @@ static int cfgfile_parse_host (struct uae_prefs *p, TCHAR *option, TCHAR *value)
                return 1;
        }
        if (_tcscmp (option, _T("joyport2")) == 0 || _tcscmp (option, _T("joyport3")) == 0) {
-               int port = _tcscmp (option, _T("joyport0")) == 0 ? 2 : 3;
+               int port = _tcscmp (option, _T("joyport2")) == 0 ? 2 : 3;
                inputdevice_joyport_config_store(p, _T(""), port, -1, 1);
                inputdevice_joyport_config_store(p, _T(""), port, -1, 2);
                inputdevice_joyport_config_store(p, value, port, -1, 0);