diff --git a/src/order_gui.cpp b/src/order_gui.cpp --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -266,9 +266,9 @@ void DrawOrderString(const Vehicle *v, c if (timetable) { SetDParam(3, STR_EMPTY); - if (order->wait_time > 0) { + if (order->GetWaitTime() > 0) { SetDParam(5, STR_TIMETABLE_STAY_FOR); - SetTimetableParams(6, 7, order->wait_time); + SetTimetableParams(6, 7, order->GetWaitTime()); } } else { SetDParam(3, (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) ? STR_EMPTY : _station_load_types[order->IsRefit()][unload][load]); @@ -334,9 +334,9 @@ void DrawOrderString(const Vehicle *v, c SetDParam(4, value); } - if (timetable && order->wait_time > 0) { + if (timetable && order->GetWaitTime() > 0) { SetDParam(5, STR_TIMETABLE_AND_TRAVEL_FOR); - SetTimetableParams(6, 7, order->wait_time); + SetTimetableParams(6, 7, order->GetWaitTime()); } else { SetDParam(5, STR_EMPTY); }