From 6b86ee9888d177c214a079a1c5d88b680458fff4 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 14 Jan 2011 22:08:40 +0000 Subject: (svn r21797) -Fix/Change: unify the size (in characters) of the string inputs with eachother and TTD to prevent crashes/asserts with e.g. signs that are too long --- src/company_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/company_type.h') diff --git a/src/company_type.h b/src/company_type.h index 1671f70df..88949b9ad 100644 --- a/src/company_type.h +++ b/src/company_type.h @@ -37,7 +37,7 @@ enum Owner { }; DECLARE_POSTFIX_INCREMENT(Owner) -static const uint MAX_LENGTH_PRESIDENT_NAME_CHARS = 31; ///< The maximum length of a president name in characters including '\0' +static const uint MAX_LENGTH_PRESIDENT_NAME_CHARS = 32; ///< The maximum length of a president name in characters including '\0' static const uint MAX_LENGTH_PRESIDENT_NAME_PIXELS = 94; ///< The maximum length of a president name in pixels static const uint MAX_LENGTH_COMPANY_NAME_CHARS = 32; ///< The maximum length of a company name in characters including '\0' static const uint MAX_LENGTH_COMPANY_NAME_PIXELS = 150; ///< The maximum length of a company name in pixels -- cgit v1.2.3-54-g00ecf