for (CompanyID i = COMPANY_FIRST; i < MAX_COMPANIES; i++) { StringID cid = STR_AI_CONFIG_AILIST_COMPANY_ID_1 + i; uint width = GetStringBoundingBox(cid).width; this->cid_width = max(GetStringBoundingBox(cid).width, GetStringBoundingBox(cid_width).width); }