summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-14 22:50:26 +0000
committerfrosch <frosch@openttd.org>2012-11-14 22:50:26 +0000
commit6e6d94a2d14a50ad93577a4b030f25f8b64986b1 (patch)
tree17083b427a8977d182654b30e59c59a368a7856f /src/ai
parent6653ac6b362cf88a6b77a4e8dd3c6926885c6b5f (diff)
downloadopenttd-6e6d94a2d14a50ad93577a4b030f25f8b64986b1.tar.xz
(svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString.
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp
index 303b08f17..214c4eb81 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -1356,7 +1356,7 @@ struct AIDebugWindow : public QueryStringBaseWindow {
{
if (wid == WID_AID_BREAK_STR_EDIT_BOX) {
/* Save the current string to static member so it can be restored next time the window is opened. */
- strecpy(this->break_string, this->edit_str_buf, lastof(this->break_string));
+ strecpy(this->break_string, this->text.buf, lastof(this->break_string));
break_string_filter.SetFilterTerm(this->break_string);
}
}