(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
authorglx
Thu, 17 Jan 2008 16:41:02 +0000
changeset 8825 38acac2cd7c8
parent 8824 82c93ca82fdb
child 8826 35a3dfe12641
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
src/aircraft_cmd.cpp
--- a/src/aircraft_cmd.cpp	Thu Jan 17 14:06:49 2008 +0000
+++ b/src/aircraft_cmd.cpp	Thu Jan 17 16:41:02 2008 +0000
@@ -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;
 		}