diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index de4c35f3e7..d39e37a1bc 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -558,7 +558,7 @@ void DrawVehiclePurchaseInfo(int x, int y, uint w, EngineID engine_number) } /* Draw details, that applies to all types except rail wagons */ - if (e->type != VEH_Train || (RailVehInfo(engine_number)->flags & RVI_WAGON == 0)) { + if (e->type != VEH_Train || !(RailVehInfo(engine_number)->flags & RVI_WAGON)) { /* Design date - Life length */ SetDParam(0, ymd.year); SetDParam(1, e->lifelength);