diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:46:49 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:46:49 +0000 |
commit | f2221e8b89d0e3030679a36bfaaa75c64951aed3 (patch) | |
tree | 7ba134a5e7b25085a35be49ac8ac7c510d6262d9 /src/ai | |
parent | fc2b12acca38964ed91d35e3d5c4aae20d992e7f (diff) | |
download | openttd-f2221e8b89d0e3030679a36bfaaa75c64951aed3.tar.xz |
(svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes sense if it is smaller than the second one, also its unit is not pixels.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 8a8db5b5c..875ccbffb 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1031,7 +1031,7 @@ struct AIDebugWindow : public QueryStringBaseWindow { this->last_vscroll_pos = 0; this->autoscroll = true; this->highlight_row = -1; - this->text.Initialize(this->edit_str_buf, this->edit_str_size, MAX_BREAK_STR_STRING_LENGTH); + this->text.Initialize(this->edit_str_buf, this->edit_str_size); /* Restore the break string value from static variable */ strecpy(this->edit_str_buf, this->break_string, this->edit_str_buf + MAX_BREAK_STR_STRING_LENGTH); |