From: Toni Wilen Date: Sat, 3 Feb 2018 15:22:50 +0000 (+0200) Subject: Fix copy&paste error, joyport2 always used port 3. X-Git-Tag: 4000~208 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5ba2491299f2d8b4f59df64094b81fcef87c3aea;p=francis%2Fwinuae.git Fix copy&paste error, joyport2 always used port 3. --- diff --git a/cfgfile.cpp b/cfgfile.cpp index 9e80b444..ab45a000 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -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);