mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r11895) -Fix (r11875): for once MSVC warns for a good reason
This commit is contained in:
parent
a9c71ce375
commit
f37174f0e2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user