summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-01-21 03:47:04 +0000
committerglx <glx@openttd.org>2009-01-21 03:47:04 +0000
commite30d3913454addb07f9566a1b83cfa4d42f74988 (patch)
tree6e7b8fd879d4f39ca1284193bf795ed5f34f88f7
parente3c69b7c4ebebba0aa85ef41ff6627705acb1db5 (diff)
downloadopenttd-e30d3913454addb07f9566a1b83cfa4d42f74988.tar.xz
(svn r15191) -Fix (r15188): -1 is not a bool (MSVC warning)
-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();
}
}