Old revision #prdve2hgh | New revision #pqbk9yybt | ||
---|---|---|---|
1 | if (company_id != INVALID_COMPANY) { | 1 | if (company_id != INVALID_COMPANY && company_id < MAX_COMPANIES) { |
2 | if (ais_to_start != 1) return CMD_ERROR; | 2 | if (ais_to_start != 1 || Company::IsValidID(company_id)) return CMD_ERROR; |
3 | if (company_id >= MAX_COMPANIES) return CMD_ERROR; | ||
4 | if (Company::IsValidID(company_id)) return CMD_ERROR; | ||
5 | } | 3 | } |