Mercurial > hg > openttd
changeset 11710:2369e3edad67 draft
(svn r16096) -Fix [FS#2849]: connect tried to validate too much of the company ID with too little information on hand
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 19 Apr 2009 22:24:34 +0000 |
parents | 886f2a4f8cba |
children | 9308119e8719 |
files | src/console_cmds.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -778,8 +778,8 @@ /* 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) */ if (_network_playas != COMPANY_SPECTATOR) { + if (_network_playas > MAX_COMPANIES) return false; _network_playas--; - if (!IsValidCompanyID(_network_playas)) return false; } } if (port != NULL) {