From 00686294327134df098c928a3b6aa0a0f97d67f5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 19 Apr 2009 22:24:34 +0000 Subject: (svn r16096) -Fix [FS#2849]: connect tried to validate too much of the company ID with too little information on hand --- src/console_cmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 11417cccd..e928f1af2 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -778,8 +778,8 @@ DEF_CONSOLE_CMD(ConNetworkConnect) /* 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) { -- cgit v1.2.3-70-g09d2