last port of ftpdata was displayed wrong after switching

This commit is contained in:
Titus Tscharntke 2012-10-06 21:36:48 +00:00
parent a2cad81210
commit fc30386e42
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ void MenuStateOptions::mouseClick(int x, int y, MouseButton mouseButton){
}
// use the following ports for ftp
char szBuf[1024]="";
sprintf(szBuf,"%d - %d",selectedPort + 2, selectedPort + GameConstants::maxPlayers);
sprintf(szBuf,"%d - %d",selectedPort + 2, selectedPort + 1 + GameConstants::maxPlayers);
labelFTPServerPort.setText(intToStr(selectedPort+1));
labelFTPServerDataPorts.setText(szBuf);
}