summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-12-05 22:23:50 +0000
committerrubidium <rubidium@openttd.org>2010-12-05 22:23:50 +0000
commit9a1805064654d5f0e348f8a7b990532bfb66921a (patch)
treec4f696f86b410ab76a0c9eb224d4cd9b7bf82fd4 /src/company_gui.cpp
parent66c7f00b607666df05849e66f6911dac9b426bd4 (diff)
downloadopenttd-9a1805064654d5f0e348f8a7b990532bfb66921a.tar.xz
(svn r21408) -Codechange: limit president name by amount of characters, not bytes
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 56d6e94a9..d5176abf6 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -1946,7 +1946,7 @@ struct CompanyWindow : Window
case CW_WIDGET_PRESIDENT_NAME:
this->query_widget = CW_WIDGET_PRESIDENT_NAME;
SetDParam(0, this->window_number);
- ShowQueryString(STR_PRESIDENT_NAME, STR_COMPANY_VIEW_PRESIDENT_S_NAME_QUERY_CAPTION, MAX_LENGTH_PRESIDENT_NAME_BYTES, MAX_LENGTH_PRESIDENT_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT);
+ ShowQueryString(STR_PRESIDENT_NAME, STR_COMPANY_VIEW_PRESIDENT_S_NAME_QUERY_CAPTION, MAX_LENGTH_PRESIDENT_NAME_CHARS, MAX_LENGTH_PRESIDENT_NAME_PIXELS, this, CS_ALPHANUMERAL, QSF_ENABLE_DEFAULT | QSF_LEN_IN_CHARS);
break;
case CW_WIDGET_COMPANY_NAME: