diff options
author | frosch <frosch@openttd.org> | 2012-11-14 22:50:17 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-14 22:50:17 +0000 |
commit | f6d4200f86e93828a4a58a957d6ae7d9d5497a86 (patch) | |
tree | 2d940ae42f1f273a19c2c33f2858feab9122d9c2 /src/ai | |
parent | 0ea21523556a345d38933ee2dd6dcdca0ec08514 (diff) | |
download | openttd-f6d4200f86e93828a4a58a957d6ae7d9d5497a86.tar.xz |
(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 875ccbffb..303b08f17 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1031,11 +1031,9 @@ 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); /* 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); - this->text.UpdateSize(); + this->text.Assign(this->break_string); /* Restore button state from static class variables */ if (ai_debug_company == OWNER_DEITY) { |