# HG changeset patch # User rubidium # Date 2009-12-19 15:31:23 # Node ID 7df201134bec90e2a7d27335d0107cefb575a158 # Parent a7c032ee7d8ea418e536bf2dd9be72e6c184bc29 (svn r18536) -Fix [FS#3386]: MSVC warning. Patch by pavel1269 diff --git a/src/vehicle.cpp b/src/vehicle.cpp --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -1558,7 +1558,7 @@ CommandCost Vehicle::SendToDepot(DoComma if (this->IsStoppedInDepot()) return CMD_ERROR; if (this->current_order.IsType(OT_GOTO_DEPOT)) { - bool halt_in_depot = this->current_order.GetDepotActionType() & ODATFB_HALT; + bool halt_in_depot = (this->current_order.GetDepotActionType() & ODATFB_HALT) != 0; if (!!(command & DEPOT_SERVICE) == halt_in_depot) { /* We called with a different DEPOT_SERVICE setting. * Now we change the setting to apply the new one and let the vehicle head for the same depot.