diff options
author | rubidium <rubidium@openttd.org> | 2011-12-18 18:37:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-18 18:37:54 +0000 |
commit | fefe22b4aa5194af499763d3cc4d4dc19116fa92 (patch) | |
tree | 5b2671aa4bc5b68584d962d11a8ceab705ad6321 /src/misc_gui.cpp | |
parent | 6ae8cac4320e098c1fa628a3afd5c090aacc80a2 (diff) | |
download | openttd-fefe22b4aa5194af499763d3cc4d4dc19116fa92.tar.xz |
(svn r23590) -Codechange: make the string validation settings better expandable
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 1256f5470..354d6227b 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1099,7 +1099,7 @@ struct QueryStringWindow : public QueryStringBaseWindow QueryStringBaseWindow(max_bytes, max_chars) { GetString(this->edit_str_buf, str, &this->edit_str_buf[max_bytes - 1]); - str_validate(this->edit_str_buf, &this->edit_str_buf[max_bytes - 1], false, true); + str_validate(this->edit_str_buf, &this->edit_str_buf[max_bytes - 1], SVS_NONE); /* Make sure the name isn't too long for the text buffer in the number of * characters (not bytes). max_chars also counts the '\0' characters. */ |