summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
committerfrosch <frosch@openttd.org>2012-06-04 15:30:29 +0000
commitd58eee1e7945098f32e2d4419506ce1a81f3e4d6 (patch)
treed5b61295290e921e8dff31d1bd73d149c84c113a /src/ai
parent31eb896143ca5a38c0dc7355921393f357c5a383 (diff)
downloadopenttd-d58eee1e7945098f32e2d4419506ce1a81f3e4d6.tar.xz
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 245057ae8..96b5fdfe8 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -1009,11 +1009,11 @@ struct AIDebugWindow : public QueryStringBaseWindow {
this->last_vscroll_pos = 0;
this->autoscroll = true;
this->highlight_row = -1;
- InitializeTextBuffer(&this->text, this->edit_str_buf, this->edit_str_size, MAX_BREAK_STR_STRING_LENGTH);
+ this->text.Initialize(this->edit_str_buf, this->edit_str_size, MAX_BREAK_STR_STRING_LENGTH);
/* 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);
- UpdateTextBufferSize(&this->text);
+ this->text.UpdateSize();
/* Restore button state from static class variables */
if (ai_debug_company == OWNER_DEITY) {