summaryrefslogtreecommitdiff
path: root/src/airport_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-06 11:08:39 +0000
committeralberth <alberth@openttd.org>2010-03-06 11:08:39 +0000
commitc7a5695d9db5f439321d5f953a853313d2d3d0ed (patch)
treee29f2d407cf4f09102ee8e4677492f1111a5dc01 /src/airport_gui.cpp
parent77fe7e0a74c597794d90e7776aa100a82fe2a60a (diff)
downloadopenttd-c7a5695d9db5f439321d5f953a853313d2d3d0ed.tar.xz
(svn r19333) -Fix (r19328): int versus uint comparison warning fixed.
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r--src/airport_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 1553bef81..c6c076b75 100644
--- a/src/airport_gui.cpp
+++ b/src/airport_gui.cpp
@@ -261,7 +261,7 @@ public:
if (!as->IsAvailable()) {
GfxFillRect(r.left + 1, y + 1, r.right - 1, y + this->line_height - 2, 0, FILLRECT_CHECKER);
}
- DrawString(r.left + WD_MATRIX_LEFT, r.right + WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, as->name, (i == _selected_airport_index) ? TC_WHITE : TC_BLACK);
+ DrawString(r.left + WD_MATRIX_LEFT, r.right + WD_MATRIX_RIGHT, y + WD_MATRIX_TOP, as->name, ((int)i == _selected_airport_index) ? TC_WHITE : TC_BLACK);
y += this->line_height;
}
}