From 5ba2491299f2d8b4f59df64094b81fcef87c3aea Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 3 Feb 2018 17:22:50 +0200 Subject: [PATCH] Fix copy&paste error, joyport2 always used port 3. --- cfgfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3