Don't 0-index device numbers!

This commit is contained in:
Gregor Richards 2017-09-12 16:48:43 -04:00
parent f7dba84c67
commit dc9ee8c6bc

View File

@ -617,7 +617,7 @@ static void announce_play_spectate(netplay_t *netplay,
sizeof(device_str) - 1 - device_str_len, ", ");
device_str_len += snprintf(device_str + device_str_len,
sizeof(device_str) - 1 - device_str_len, "%u",
(unsigned) device);
(unsigned) (device+1));
}
/* Then we make the final string */