if (company_id != INVALID_COMPANY && company_id < MAX_COMPANIES) { if (ais_to_start != 1 || Company::IsValidID(company_id)) return CMD_ERROR; }