summaryrefslogtreecommitdiff
path: root/src/strings_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings_type.h')
-rw-r--r--src/strings_type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/strings_type.h b/src/strings_type.h
index a77ad663b..91d42d0cb 100644
--- a/src/strings_type.h
+++ b/src/strings_type.h
@@ -17,6 +17,7 @@
*/
typedef uint16 StringID;
static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string
+static const int MAX_CHAR_LENGTH = 4; ///< Max. length of UTF-8 encoded unicode character
enum {
MAX_LANG = 64, ///< Maximal number of languages supported by the game