changeset 1791:1843823f1e9b

Fix off-by one in IO port connection text output
author Michael Pavone <pavone@retrodev.com>
date Wed, 20 Mar 2019 21:36:32 -0700
parents a29f35c47da4
children 52a47611a273
files io.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/io.c	Wed Mar 20 09:35:17 2019 -0700
+++ b/io.c	Wed Mar 20 21:36:32 2019 -0700
@@ -391,7 +391,7 @@
 		} else
 #endif
 		if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) {
-			printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num + 1, device_type_names[ports[i].device_type]);
+			printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num, device_type_names[ports[i].device_type]);
 		} else {
 			printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]);
 		}