Mercurial > hg > openttd
changeset 8329:9e01414f2f06 draft
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
author | glx <glx@openttd.org> |
---|---|
date | Thu, 17 Jan 2008 16:41:02 +0000 |
parents | 856e7d358c12 |
children | 43831761bc77 |
files | src/aircraft_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1565,7 +1565,7 @@ /* 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; }