summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-05 22:24:34 +0000
committerrubidium <rubidium@openttd.org>2010-12-05 22:24:34 +0000
commit768da4b48f8c70177cb5dfc77a30a23a98a3ae05 (patch)
treee1dfd4ae5d33031df1ada23e834fa6c029824979 /src/group_gui.cpp
parentab9cc74ba5cdbb6784f26d354ab4999d605a5ebb (diff)
downloadopenttd-768da4b48f8c70177cb5dfc77a30a23a98a3ae05.tar.xz
(svn r21411) -Codechange: limit group name by amount of characters, not bytes
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index e6ef1dc54..0fb125933 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -625,7 +625,7 @@ public:
SetDParam(0, group);
str = STR_GROUP_NAME;
}
- ShowQueryString(str, STR_GROUP_RENAME_CAPTION, MAX_LENGTH_GROUP_NAME_BYTES, MAX_LENGTH_GROUP_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT);
+ ShowQueryString(str, STR_GROUP_RENAME_CAPTION, MAX_LENGTH_GROUP_NAME_CHARS, MAX_LENGTH_GROUP_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS);
}
/**