summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 6e501af01..0425bd4b5 100644
--- a/src/ai/ai_gui.cpp
+++ b/src/ai/ai_gui.cpp
@@ -550,7 +550,7 @@ struct AIConfigWindow : public Window {
virtual void OnTick()
{
if (--this->timeout == 0) {
- this->clicked_button = -1;
+ this->clicked_button = false;
this->SetDirty();
}
}