File diff r12138:e93d2e409e78 → r12139:03c554da6f01
src/strings.cpp
Show inline comments
 
@@ -987,13 +987,13 @@ static char *FormatString(char *buff, co
 
			}
 

	
 
			case SCC_COMPANY_NUM: { // {COMPANYNUM}
 
				CompanyID company = (CompanyID)GetInt32(&argv);
 

	
 
				/* Nothing is added for AI or inactive companies */
 
				if (!Company::IsValidHumanID(company)) {
 
				if (Company::IsValidHumanID(company)) {
 
					int64 args[1];
 
					args[0] = company + 1;
 
					buff = GetStringWithArgs(buff, STR_COMPANY_NUM, args, last);
 
				}
 
				break;
 
			}