summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-01-17 16:41:02 +0000
committerglx <glx@openttd.org>2008-01-17 16:41:02 +0000
commit80d62cb35830f55feea331f96dc6c49eec0b5ebe (patch)
treecb5bc075508d9e8822d1edcc9f501615da76e141 /src
parent8bc5115a1a3aa538b24f70f64f17c7b9ffaac9f7 (diff)
downloadopenttd-80d62cb35830f55feea331f96dc6c49eec0b5ebe.tar.xz
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index f8122e33f..702661d65 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -1565,7 +1565,7 @@ static inline bool CheckSendAircraftToHangarForReplacement(const Vehicle *v)
/* There is no autoreplace assigned to this EngineID so we will set it to renew to the same type if needed */
new_engine = v->engine_type;
- if((p->engine_renew && v->age - v->max_age) < p->engine_renew_months * 30) {
+ if(p->engine_renew && (v->age - v->max_age) < p->engine_renew_months * 30) {
/* No need to replace the aircraft */
return false;
}