diff --git a/src/order_cmd.h b/src/order_cmd.h index aa2c77efb4..1e841b52c9 100644 --- a/src/order_cmd.h +++ b/src/order_cmd.h @@ -53,9 +53,9 @@ restart: UnregisterOrderDestination(order, v->type, v->owner); /* Clear wait time */ - if (!order->IsType(OT_CONDITIONAL)) v->orders.list->UpdateTotalDuration(-order->GetWaitTime()); + if (!order->IsType(OT_CONDITIONAL)) v->orders.list->UpdateTotalDuration(-static_cast(order->GetWaitTime())); if (order->IsWaitTimetabled()) { - if (!order->IsType(OT_CONDITIONAL)) v->orders.list->UpdateTimetableDuration(-order->GetTimetabledWait()); + if (!order->IsType(OT_CONDITIONAL)) v->orders.list->UpdateTimetableDuration(-static_cast(order->GetTimetabledWait())); order->SetWaitTimetabled(false); } order->SetWaitTime(0);