1
0
Fork 0

(svn r16096) -Fix [FS#2849]: connect tried to validate too much of the company ID with too little information on hand

release/1.0
rubidium 2009-04-19 22:24:34 +00:00
parent d02cdd91ca
commit 0068629432
1 changed files with 1 additions and 1 deletions

View File

@ -778,8 +778,8 @@ DEF_CONSOLE_CMD(ConNetworkConnect)
/* From a user pov 0 is a new company, internally it's different and all /* From a user pov 0 is a new company, internally it's different and all
* companies are offset by one to ease up on users (eg companies 1-8 not 0-7) */ * companies are offset by one to ease up on users (eg companies 1-8 not 0-7) */
if (_network_playas != COMPANY_SPECTATOR) { if (_network_playas != COMPANY_SPECTATOR) {
if (_network_playas > MAX_COMPANIES) return false;
_network_playas--; _network_playas--;
if (!IsValidCompanyID(_network_playas)) return false;
} }
} }
if (port != NULL) { if (port != NULL) {