diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 7d0b9c6e6b..76e7f4c6e6 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -808,8 +808,8 @@ struct TimetableWindow : Window { break; } - case WID_VT_CLEAR_TIME: { // Clear waiting time. - ExecuteTimetableCommand(v, _ctrl_pressed, this->sel_index, MTF_WAIT_TIME, 0, true); + case WID_VT_CLEAR_TIME: { // Clear travel/waiting time. + ExecuteTimetableCommand(v, _ctrl_pressed, this->sel_index, (this->sel_index % 2 == 1) ? MTF_TRAVEL_TIME : MTF_WAIT_TIME, 0, true); break; }